• 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: Setting an Icon of new folder....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting an Icon of new folder....


  • Subject: Re: Setting an Icon of new folder....
  • From: Graff <email@hidden>
  • Date: Thu, 04 Dec 2003 10:48:26 -0500

Well I wasn't sure how to set up an icon so I tried copying one from another file. There were no errors and the folder was created just fine but it had the default icon. Here's the code I tried:
------
tell application "Finder"
set theFile to choose file with prompt ,
"Choose a file to get the icon from."
make new folder at (path to desktop folder) ,
with properties {name:"Test", icon:(icon of theFile)}
end tell
------

So unless someone knows another way of doing this I'd say the answer is no. You could probably do it using UI scripting of the Finder, but that is going to be a bit messy.

- Ken

On Dec 4, 2003, at 9:55 AM, Mario Kolaszewski wrote:

Is it possible under 10.3 to create a folder with a
custom icon using AS?
_______________________________________________
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: Setting an Icon of new folder....
      • From: Michelle Steiner <email@hidden>
References: 
 >Setting an Icon of new folder.... (From: Mario Kolaszewski <email@hidden>)

  • Prev by Date: Setting an Icon of new folder....
  • Next by Date: Another script to analyize, please
  • Previous by thread: Setting an Icon of new folder....
  • Next by thread: Re: Setting an Icon of new folder....
  • Index(es):
    • Date
    • Thread