• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting icon copying: Finder barfs - howcome?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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...


References: 
 >Re: Scripting icon copying: Finder barfs - howcome? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Moving printers
  • Next by Date: Duplicate and rename folder path
  • Previous by thread: Re: Scripting icon copying: Finder barfs - howcome?
  • Next by thread: Re: string comparison
  • Index(es):
    • Date
    • Thread