• 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: Finder's information window in OS X Applescript: nothing works
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder's information window in OS X Applescript: nothing works


  • Subject: Re: Finder's information window in OS X Applescript: nothing works
  • From: John Delacour <email@hidden>
  • Date: Fri, 1 Aug 2003 20:55:31 +0100
  • Mac-eudora-version: 6.0a29

At 7:33 pm +0200 1/8/03, Reinforced Darkness wrote:

want to store some data in the comment field of the information window and retrieve it by a script
try this
//
tell application "Finder"
set fichier to file "Macintosh HD:myfile"
set commentaire to (Comments panel) of information window of fichier

end tell
//
---> information window of ....

stupid scriptable Finder in OS X (If we can call it "scriptable")!

Well you can call it what you want if you've never looked at its dictionary, so first have a good read of that and then con the Applescript Finder Guide and then try this:

tell app "Finder"
set f to item 1 of (get selection)
set the comment in f to "" & (current date)
get the comment in f
end
--> "Friday, August 1, 2003 8:51:23 pm"

JD



.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Finder's information window in OS X Applescript: nothing works (From: Reinforced Darkness <email@hidden>)

  • Prev by Date: Re: Script to Get Finder Selection?
  • Next by Date: Re: Sorting A List Solution Revisited was Sorting A List - Need Help
  • Previous by thread: Re: Finder's information window in OS X Applescript: nothing works
  • Next by thread: Re: UI Scripting FileMaker
  • Index(es):
    • Date
    • Thread