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: Tue, 18 Oct 2016 17:42:38 +1100
On 18 Oct. 2016, at 7:39 am, Yvan KOENIG <email@hidden> wrote:
set PosixTemp to current application's NSTemporaryDirectory() as text --> "/var/folders/v2/40_tdtj114gbn1fw4xts8hzh0000gn/T/" set PosixTemp2 to POSIX path of (path to temporary items from user domain) --> "/private/var/folders/v2/40_tdtj114gbn1fw4xts8hzh0000gn/T/TemporaryItems/"
As you may see, the first one doesn't include the "TemporaryItems" folder.
I believe /var is just a symlink to /private/var, and the old Carbon functions append the TemporaryItems component.
For interest, I just tried using the FSFindFolder() function from Folders.h -- which is clearly what Standard Additions is using -- passing both local and user domains, and got the same result each time:
/private/var/folders/9d/n7rpchy88xlg3b008k8ydqlh0000gn/T/TemporaryItems
So unless someone from the AS team actually tried it, they wouldn't have known about the change either; it has been made to code they call, not write.
(FWIW, FSFindFolder() was deprecated in 10.8. Not that that necessarily means it is going to disappear soon.)
|
_______________________________________________
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