• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Simple Syntax Question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Simple Syntax Question...
      • From: Michelle Steiner <email@hidden>
    • Re: Simple Syntax Question...
      • From: Ed Stockly <email@hidden>
  • Prev by Date: Re: Photoshop CS3 : translate selection problem - possibly units?
  • Next by Date: Re: Simple Syntax Question...
  • Previous by thread: Re: Photoshop CS3 : translate selection problem - possibly units?
  • Next by thread: Re: Simple Syntax Question...
  • Index(es):
    • Date
    • Thread