Re: Need an icon
Re: Need an icon
- Subject: Re: Need an icon
- From: Martin Michel <email@hidden>
- Date: Wed, 26 May 2010 20:24:42 +0200
Hi Jeffrey,
Some time ago I wrote a small tool to set an image as the icon for a certain file/folder, of course it also works with icns files. The name of the tool is a bit weird, but maybe you can use it:
Best regards,
Martin Hello Scripters,
I am trying to create a script that
will create a folder called "Tools" in the Utilities folder with
an icon I designed. If the folder already exists the script will do nothing
but end. The part I'm having difficulty with is adding the icon. The icon
would not exist on the Mac previous to this script running so how do you
reference it and then make it the icon for the new "Tools" folder.
I have copied what I have so far, any help would be much appreciated.
set x
to path to
utilities folder
set y
to x
& "Tools" as string
tell application
"Finder"
if
exists
y
then
else
set y
to make
new
folder
at
x
with properties
{name:"Tools"}
end
if
end tell
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden