• 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: About path to temporary items.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About path to temporary items.


  • Subject: Re: About path to temporary items.
  • From: Shane Stanley <email@hidden>
  • Date: Sun, 16 Oct 2016 22:03:41 +1100

On 16 Oct. 2016, at 8:55 pm, Yvan KOENIG <email@hidden> wrote:
>
>  I just feel that documenting it would have been … polite.

I see your point. But looking at it from another perspective, the reason there are commands for this sort of thing is precisely so that scripts aren't based on hard-coded paths, and therefore the locations can be changed if desired/needed. The paths themselves are therefore really implementation details, and should be of no concern to scripters.

I'm wondering if the change is related to sandboxed apps. For example:

tell application "Mail"
	POSIX path of (path to temporary items folder from user domain)
end tell

returns:

	/private/var/folders/9d/n7rpchy88xlg3b008k8ydqlh0000gn/T/com.apple.mail/TemporaryItems/

Perhaps the change was required to give scripts run from sandboxed apps access to exclusive temporary items directories.

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>



 _______________________________________________
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


References: 
 >Re: About path to temporary items. (From: Nigel Garvey <email@hidden>)
 >Re: About path to temporary items. (From: Nigel Garvey <email@hidden>)
 >Re: About path to temporary items. (From: Phil Stokes <email@hidden>)
 >Re: About path to temporary items. (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: About path to temporary items.
  • Next by Date: Re: About path to temporary items.
  • Previous by thread: Re: About path to temporary items.
  • Next by thread: AS & Cocoa & macOS - anyone aware of changes?
  • Index(es):
    • Date
    • Thread