Re: OSX script to change/copy file icon ?
Re: OSX script to change/copy file icon ?
- Subject: Re: OSX script to change/copy file icon ?
- From: Gary Lists <email@hidden>
- Date: Wed, 08 Jan 2003 23:56:29 -0500
On or about 1/8/03 1:29 PM, Paul Reilly wrote:
>
tell application "Finder"
>
choose file with prompt "Choose something with an icon to copy"
>
set theicon to icon of selection
>
choose file with prompt "Choose a file whose icon you want to change"
>
set thefile to icon of selection
>
activate
>
end tell
I haven't tried, but I can't imagine that would work. If it does, then *&#@
me. :0)
set thefile to icon of ... ?
Wouldn't it make more sense to:
set the icon of thefile to theicon (sense you already picked that up)?
But since you didn't set the choose to anything, what is it working on?
What about:
tell application "Finder"
set thefile to (choose file with prompt "Choose something with an icon to
copy")
set theicon to icon of thefile
set newfile to (choose file with prompt "Choose a file whose icon you want
to change")
set the icon of newfile theicon
end tell
??
--
Gary
Incoming replies are auto-deleted.
Please post directly to the list or newsgroup.
Really need direct? Rot me at:
email@hidden
Lbhe fhowrpg zhfg ortva "abgwhax:" (ab dhbgrf)
Avpr gb zrrg lbh! Qba'g fcnz zr.
_______________________________________________
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.