Re: Setting an Icon of new folder....
Re: Setting an Icon of new folder....
- Subject: Re: Setting an Icon of new folder....
- From: Graff <email@hidden>
- Date: Thu, 04 Dec 2003 10:48:26 -0500
Well I wasn't sure how to set up an icon so I tried copying one from
another file. There were no errors and the folder was created just
fine but it had the default icon. Here's the code I tried:
------
tell application "Finder"
set theFile to choose file with prompt ,
"Choose a file to get the icon from."
make new folder at (path to desktop folder) ,
with properties {name:"Test", icon:(icon of theFile)}
end tell
------
So unless someone knows another way of doing this I'd say the answer is
no. You could probably do it using UI scripting of the Finder, but
that is going to be a bit messy.
- Ken
On Dec 4, 2003, at 9:55 AM, Mario Kolaszewski wrote:
Is it possible under 10.3 to create a folder with a
custom icon using AS?
_______________________________________________
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.