• 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: Path to DeskTop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Path to DeskTop


  • Subject: Re: Path to DeskTop
  • From: KOENIG Yvan <email@hidden>
  • Date: Thu, 19 Apr 2007 18:59:37 +0200


Le 19 avr. 07 à 18:48:56, Michelle Steiner a écrit :

On Apr 19, 2007, at 9:38 AM, James Nierodzik wrote:

set deskPath to path to desktop

"path to desktop folder" is slightly better because it works within a tell block for the Finder, whereas "path to desktop" doesn't.


tell application "Finder"
	path to desktop folder
end tell

Both forms work with other applications, however, and both work outside of tell blocks.

Advices may differ ;-)

From my point of view,

path to desktop

is better because it doesn't require the Finder which I try to drop each time I may replace it by Sytem Events.

Yvan KOENIG _______________________________________________
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: Path to DeskTop
      • From: Michelle Steiner <email@hidden>
References: 
 >Path to DeskTop (From: Oakley Masten <email@hidden>)
 >Re: Path to DeskTop (From: James Nierodzik <email@hidden>)
 >Re: Path to DeskTop (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Path to DeskTop
  • Next by Date: Re: Path to DeskTop
  • Previous by thread: Re: Path to DeskTop
  • Next by thread: Re: Path to DeskTop
  • Index(es):
    • Date
    • Thread