Hello;
I've lost the author's name of the script below, but need help with
customizing it. It saves messages as text (I use it for mailing list
digests). What I can't get it to do is save to a folder I choose as opposed
to my desktop.
Here's the language in question:
on writefile(s, subj)
try
tell application "Finder" to activate
set p to path to desktop folder as string
set fn to makeName(subj)
set fileRef to open for access (file (p & fn)) with write permission
write s to fileRef
close access fileRef
tell application "Finder"
activate
set the file type of file (p & fn) to tcode
set the creator type of file (p & fn) to ccode
end tell
on error theErr
display dialog theErr
end try
end writefile
When I run the script with a different location, I get an error saying "bad
name for file."
Anyone know how I should correctly specify the 2nd line (the one where I set
p)?
Thanks for any help...
--
To unsubscribe:
<mailto:[EMAIL PROTECTED]>
archives:
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>