Re: Use of 'path to ... folder creation
Re: Use of 'path to ... folder creation
- Subject: Re: Use of 'path to ... folder creation
- From: "Gary (Lists)" <email@hidden>
- Date: Fri, 06 May 2005 17:47:50 -0400
"Dennis Jones" wrote:
>> Can someone give me an example of how to specify a folder to use and create
>> the folder if it does not exist.
>>
>> My script uses ~/my-home/tmp to store a temporary file. I need the script to
>> create the tmp folder if it does not exist. From reading the 'path to'
>> dictionary entry, it looks to me as if it could take care of this for me.
[clip]
>> [folder creation boolean] -- Create the folder if it doesn't exist?
>> (default is true)
"kai" wrote:
>
> Works here, Dennis. Try:
>
> set tmpFolder to path to temporary items
>
> or:
>
> set tmpFolder to path to "temp"
Both work here as well, 10.3.9.
Dennis, that 'path to' dictionary entry related to 'folder creation' may
still be wrong/broken. It has been in the past, anyway.
In prior versions of AS, no matter what, the folder was created if it did
not exist when the 'path to' command was executed. This was true in OS9 and
in early OSX, when I remember several of us worked on some 'path to' scripts
for referencing the full list of blessed items.
Also, you said you wanted to put things in 'tmp', but here, that is
'TemporaryItems', which is inside the uid folder of the tmp folder.
--
Gary
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden