Re: creating temp files??
Re: creating temp files??
- Subject: Re: creating temp files??
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 11 Jun 2003 21:03:42 -0700
On 6/11/03 8:48 PM, "Andrew Oliver" <email@hidden> wrote:
>
To be doubly safe, you can use the 'path to' command to find the system temp
>
directory (not necessarily /var/tmp :
>
>
set tempDir to path to temporary items
>
set tempFilename to tempDir & "myFilename" as string
Not so good. That's concatenating an alias to a string, making a list, then
(hopefully) coercing the list to a string. Omit coercions:
set tempDir to path to temporary items as string -- or 'as Unicode text'
set tempFilename to tempDir & "myFilename"
>
set fileRef to open for access file tempFilename ... blah blah blah...
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.