• 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
Folder Actions Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Folder Actions Question


  • Subject: Folder Actions Question
  • From: Stuart Milliken <email@hidden>
  • Date: Fri, 5 Sep 2008 23:07:15 +0800

> Depending on how you coded it, it's highly possible that is happening.
However, unless you post the code, it is difficult to say for sure.


The script is as follows. Thanks for looking.

Stuart


on adding folder items to thisFolder after receiving someItems tell application "Finder" set label index of thisFolder to 4 --blue end tell end adding folder items to

on removing folder items from thisFolder after losing someItems
tell application "System Events"
set filesInFolder to every file of thisFolder whose visible is true
set n to count filesInFolder
set foldersInFolder to every folder of thisFolder whose visible is true
set n to n + (count foldersInFolder)
end tell
tell application "Finder"
if n = 0 then
set label index of thisFolder to 7 --gray
else
set label index of thisFolder to 4 --blue
end if
end tell
end removing folder items from
_______________________________________________
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: Folder Actions Question
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: Folder Actions Question
  • Next by Date: Re: Folder Actions Question
  • Previous by thread: Re: Folder Actions Question
  • Next by thread: Re: Folder Actions Question
  • Index(es):
    • Date
    • Thread