Re: temporary items
Re: temporary items
- Subject: Re: temporary items
- From: Axel Luttgens <email@hidden>
- Date: Fri, 12 Aug 2011 23:49:06 +0200
Le 12 août 2011 à 20:09, Luther Fuller a écrit :
> On Aug 12, 2011, at 12:35 PM, KOENIG Yvan wrote:
>
>> I don't see what is the problem.
>
> And I didn't go into the details except to say that
> path to temporary items
> works in previous systems, but not in Lion, while
> path to temporary items from user domain
> works in all recent systems, including Lion.
>
> My recollection from a few days ago is that my script ...
> 1. instructs ASE to create an application bundle in 'temporary items';
> 2. then copies items in a folder into temp/application.app/Contents/Resources/.
> 3. Copies the new application bundle to replace the previous build.
> 4. Removes (rm) the temp copy.
>
> In Lion, I think the error occurred in step 2.
> When I changed to 'temporary items from user domain', Lion (and previous systems) behaved correctly and there was no error when copying into temp/application.app/Contents/Resources/.
>
> Could be a permissions problem. But, now it's fixed and seems to be working well.
Hello Luther,
Let's first try this one in ASE while running Lion:
path to temporary items
path to temporary items from user domain
and have a look at the log:
tell current application
path to temporary items
--> alias "Boot:private:var:folders:qc:14nrmg_x5fb3ws9hysx_fvdm0000gp:T:TemporaryItems:"
path to temporary items from user domain
--> alias "Boot:Users:luttgens:Library:Caches:TemporaryItems:"
As a side note, IIRC, that usage of the "Boot:private:var:folders…" has been introduced with 10.5 (and possibly earlier), and brought some consistency with shell's TMPDIR variable.
Now, a little trip with Terminal.app:
luttgens$ ls -al /private/var/folders/qc/14nrmg_x5fb3ws9hysx_fvdm0000gp/T/TemporaryItems/
total 0
drwxr-xr-x 2 luttgens staff 68 12 aoû 18:44 .
drwx------ 25 luttgens staff 850 12 aoû 23:13 ..
luttgens$ ls -al /Users/luttgens/Library/Caches/TemporaryItems/
total 0
drwx------ 4 luttgens staff 136 12 aoû 18:44 .
drwxr-xr-x@ 92 luttgens staff 3128 12 aoû 12:18 ..
drwxr-xr-x 2 luttgens staff 68 31 jul 15:43 Entourage Temp
drwx------ 3 luttgens staff 102 12 aoû 16:55 msoclip
So, I am able to write in both folders.
If step 2 encounters problems,
- either you have some problems with permissions on your disk (what's the output of the equivalent above ls commands in your case?)
- or your "temp/application.app/Contents/Resources/" path isn't related to the temporary items folder, and some more details would be welcome…
Just saying "now it's fixed and seems to be working well" could hide some deeper problems, in fact unrelated to AppleScript. Could be worth to be investigated.
HTH,
Axel
_______________________________________________
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