• 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: 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.)

-- 
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: 
 >About path to temporary items. (From: Yvan KOENIG <email@hidden>)
 >Re: About path to temporary items. (From: Shane Stanley <email@hidden>)
 >Re: About path to temporary items. (From: Jim Underwood <email@hidden>)
 >Re: About path to temporary items. (From: Shane Stanley <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: ASOC warning messages
  • Previous by thread: Re: About path to temporary items.
  • Next by thread: Re: About path to temporary items.
  • Index(es):
    • Date
    • Thread