OSX script to change/copy file icon ?
OSX script to change/copy file icon ?
- Subject: OSX script to change/copy file icon ?
- From: Paul Reilly <email@hidden>
- Date: Wed, 8 Jan 2003 15:05:17 +0000 (GMT)
How do I set the icon of an alias in OSX ?
I have the following script which creates an alias on the
desktop to a filestorage area. Now I'd like to give it a custom
icon istead of the generic folder icon.
tell application "Finder"
set fileRef to folder "untitled:private:Users:Home:paulr"
make new alias file at desktop to fileRef with properties {name:"filestorage (30MB)"}
end tell
Q: can I set the icon as another properties attribute?
Another approach I had was to copy the icon from existing file with that
icon. I tried this script below, but I think it only works in OS9.
It fails with "can't get icon of selection" when run unser 10.2.3
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
Any feedback re: copying icons/setting file icons via applescript in
OSX is much appreciated.
Paul
_______________________________________________
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.