Re: Scripting icon copying: Finder barfs - howcome?
Re: Scripting icon copying: Finder barfs - howcome?
- Subject: Re: Scripting icon copying: Finder barfs - howcome?
- From: Charles Arthur <email@hidden>
- Date: Mon, 26 Feb 2001 22:26:15 +0000
At 11:48 am -0800 26/2/01, Michelle Steiner wrote:
>
The code you posted won't copy an icon. All it does is ask for two
>
files, and then get the icon of the item selected in the Finder, twice.
Knew it was something obvious-ish that just needed a different brain to
look at it.
>
set sourceFile to choose file with prompt "Choose something with an icon
>
to copy"
>
set destinationFile to choose file with prompt "Choose a file whose icon
>
you want to change"
>
>
tell application "Finder"
>
set theicon to icon of the sourceFile
>
set the icon of destinationFile to theicon
>
activate
>
end tell
Grateful.
best
Charles
http://www.ukclimbing.com : 1,000+ British crags, 350+ British climbing walls
- searchable by distance rock type, etc, with 5-day weather forecasts for
every one - plus maps, articles, news, and the New Routes database. There's
even a cool shop attached...