• 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: OSX script to change/copy file icon ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OSX script to change/copy file icon ?


  • Subject: Re: OSX script to change/copy file icon ?
  • From: Gary Lists <email@hidden>
  • Date: Wed, 08 Jan 2003 23:56:29 -0500

On or about 1/8/03 1:29 PM, Paul Reilly wrote:

> 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

I haven't tried, but I can't imagine that would work. If it does, then *&#@
me. :0)

set thefile to icon of ... ?

Wouldn't it make more sense to:

set the icon of thefile to theicon (sense you already picked that up)?

But since you didn't set the choose to anything, what is it working on?

What about:

tell application "Finder"
set thefile to (choose file with prompt "Choose something with an icon to
copy")
set theicon to icon of thefile
set newfile to (choose file with prompt "Choose a file whose icon you want
to change")
set the icon of newfile theicon
end tell


??
--
Gary

Incoming replies are auto-deleted.
Please post directly to the list or newsgroup.

Really need direct? Rot me at:
email@hidden
Lbhe fhowrpg zhfg ortva "abgwhax:" (ab dhbgrf)
Avpr gb zrrg lbh! Qba'g fcnz zr.
_______________________________________________
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.

  • Follow-Ups:
    • Re: OSX script to change/copy file icon ?
      • From: Paul Reilly <email@hidden>
References: 
 >OSX script to change/copy file icon ? (From: Paul Reilly <email@hidden>)

  • Prev by Date: Re: limiting numeric runs
  • Next by Date: Re: AppleScript Wizards
  • Previous by thread: OSX script to change/copy file icon ?
  • Next by thread: Re: OSX script to change/copy file icon ?
  • Index(es):
    • Date
    • Thread