• 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: Paul Reilly <email@hidden>
  • Date: Mon, 13 Jan 2003 11:32:38 +0000 (GMT)

Thanks Gary,

I can see your script is much more logical! However the Script
Editor in OS 10.2.3 seems to have a problem with the final line:

"set the icon of newfile theicon"

gives syntax error: "identifier can't go after this identifier"
I tried adding another "to" so that it reads:

"set the icon of newfile to theicon"

that passes the syntax check, but then gives and execution error of
"can't set icon of alias "hard disk:myfile" to missing value"

Any ideas? Why does it think there's a missing value?
Is this possible with 10.2.3 ?

Paul

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

References: 
 >Re: OSX script to change/copy file icon ? (From: Gary Lists <email@hidden>)

  • Prev by Date: Re: OSX script to change/copy file icon ?
  • Next by Date: Re: Change properties in one applet from another
  • Previous by thread: Re: OSX script to change/copy file icon ?
  • Next by thread: Re: OSX script to change/copy file icon ?
  • Index(es):
    • Date
    • Thread