Re: creating temp files??
Re: creating temp files??
- Subject: Re: creating temp files??
- From: John Delacour <email@hidden>
- Date: Thu, 12 Jun 2003 08:09:37 +0100
- Mac-eudora-version: 6.0b20
At 9:23 pm -0400 11/6/03, Chris Kacerguis wrote:
... I am writting a program that takes a variable reads it into a
temp file, then I need to know the file name and location, then
send that file name to a:
do shell script ("command <" & filename)
How do I make a temp file (just needs to be plain old text)
set fU to "/tmp/temp.sh"
set f to fU as POSIX file
set lf to ASCII character 10
set scr to "#!/usr/bin/sh" & lf & "echo 'Hello World!';"
open for access f with write permission
set eof f to 0
write scr to f
close access f
do shell script "sh " & fU
JD
.
_______________________________________________
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.