• 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: Help..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help..


  • Subject: Re: Help..
  • From: Philippe GRUCHET <email@hidden>
  • Date: Thu, 20 Mar 2003 02:51:11 +0100

From: Andrew Oliver <email@hidden>

Also, how would I create an alias to it on the Desktop?

This code snippet will make an alias of the Safari app on the user's desktop

set theDesktop to path to desktop
tell application "Finder"
make new alias file at theDesktop to alias "Macintosh [NOBREAK]
HD:Applications:Safari.app:"
end tell

An implicit path is better for portability. (A very redundant problem!)
So, try:

tell app "Finder" to set x to application file id "sfri"
tell app "Finder" to make new alias file at desktop to x as alias


Kind regards,
Philippe Gruchet/SVM Mac
_______________________________________________
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.

  • Prev by Date: Re: Eudora users - Did you know that...
  • Next by Date: [ANN] March BAUG Meeting
  • Previous by thread: Re: Help..
  • Next by thread: Re: Scripting Quark on B&W G3 hard disk problems
  • Index(es):
    • Date
    • Thread