Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > Simple Syntax P...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 1650 of 1674
Post > Topic >>

Simple Syntax Problem...

by DonMega <scout7id@[EMAIL PROTECTED] > Aug 3, 2008 at 09:47 PM

....but not for me, apparently. I am trying to check a known, specific 
directory for folders that contain only one directory. When those 
directories are found they are to be labeled "RED" so that they can 
subsequently be manually checked and deleted.

It should be simple but I obviously have my syntax all fouled up. Can 
someone provide some insight into what I'm missing or doing wrong?

My code:

tell application "finder"
	set checkFolder to folder "Test Directory" of folder "Desktop" of 
folder "donmini" of folder "Users" of disk "MBPro"
end tell

repeat with a from 1 to length of checkFolder
	If count of item a of folder "Test Directory" of folder "Desktop" of 
folder "donmini" of folder "Users" of disk "MBPro" = 1
	then set label index of item a of folder "Test Directory" of folder 
"Desktop" of folder "donmini" of folder "Users" of disk "MBPro" to 2
	end if
end repeat

Thanks in advance.

Don Fuller
 




 2 Posts in Topic:
Simple Syntax Problem...
DonMega <scout7id@[EMA  2008-08-03 21:47:15 
Private Message
   2008-08-03 21:57:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 11:48:47 CST 2008.