Simple Syntax Question...
Simple Syntax Question...
- Subject: Simple Syntax Question...
- From: Don Fuller <email@hidden>
- Date: Sun, 3 Aug 2008 20:31:53 -0500
...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 Coast Posters and Photography "My part-time profession and full-time passion" |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden