• 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
Need an icon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need an icon


  • Subject: Need an icon
  • From: email@hidden
  • Date: Tue, 25 May 2010 12:40:12 -0500

Hello Scripters,

I am trying to create a script that will create a folder called "Tools" in the Utilities folder with an icon I designed. If the folder already exists the script will do nothing but end. The part I'm having difficulty with is adding the icon. The icon would not exist on the Mac previous to this script running so how do you reference it and then make it the icon for the new "Tools" folder. I have copied what I have so far, any help would be much appreciated.

set x to path to utilities folder
set y to x & "Tools" as string
tell application "Finder"
        if exists y then
        else
                set y to make new folder at x with properties {name:"Tools"}
        end if
end tell



Jeff Madson • Macintosh Systems Engineer • RR Donnelley Desktop Engineering


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Need an icon
      • From: Martin Michel <email@hidden>
  • Prev by Date: Re: Applescript & Final Cut Server & XML
  • Next by Date: How to delete IMAP junk messages once and for all
  • Previous by thread: Packaging an automator service for distribution...
  • Next by thread: Re: Need an icon
  • Index(es):
    • Date
    • Thread