Re: About path to temporary items.
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