Re: Finder's information window in OS X Applescript: nothing works
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.