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: Paul Reilly <email@hidden>
- Date: Mon, 13 Jan 2003 11:32:38 +0000 (GMT)
Thanks Gary,
I can see your script is much more logical! However the Script
Editor in OS 10.2.3 seems to have a problem with the final line:
"set the icon of newfile theicon"
gives syntax error: "identifier can't go after this identifier"
I tried adding another "to" so that it reads:
"set the icon of newfile to theicon"
that passes the syntax check, but then gives and execution error of
"can't set icon of alias "hard disk:myfile" to missing value"
Any ideas? Why does it think there's a missing value?
Is this possible with 10.2.3 ?
Paul
>
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
_______________________________________________
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.