• 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
Re: color name for a label index
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: color name for a label index


  • Subject: Re: color name for a label index
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 23 Jun 2012 16:54:01 +1000

On 23/06/2012, at 4:40 PM, Brian Christmas wrote:

Try something like this...

on run
set tempPath to the path to me as text
set rr to 0
repeat 120 times
repeat
set r to random number from 0 to 7
if r ≠ rr then exit repeat
end repeat
set rr to r
tell application "Finder"
set label index of file tempPath to r --(a number from 0 to 7)
end tell
delay 0.5
end repeat
say "finished"
end run

I give in -- what is it supposed to do?

-- 
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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

References: 
 >color name for a label index (From: Ronald Hofmann <email@hidden>)
 >Re: color name for a label index (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: color name for a label index
  • Next by Date: Re: color name for a label index
  • Previous by thread: Re: color name for a label index
  • Next by thread: Re: color name for a label index
  • Index(es):
    • Date
    • Thread