> On 8/7/03 5:28 AM, "DigestBoy" wrote:
> 
>> I have a script that saves messages out as text to a folder on my desktop.
>> It worked in OS 9, but now that I've switched over to X, I'm getting an
>> error, "File 10 HD:Desktop:digest:Entourage-Talk Digest - 0804032 wasn't
>> found."
>> 
>> This is the location in the script:
>> 10:Desktop:digest:
>> 
>> I'm wondering if someone can tell me if there's a problem with the syntax,
>> (maybe I need to specify which desktop?). I manually changed it when I moved
>> to my new X partition.
> 
> It's a change in the 'file' terminology in OS X. Which version of OS X are
> you using? (Update to OS 10.2.6, or at least 10.2.3 or later, if you haven't
> yet.)
> 
> Now tell us the line(s) in the script that specify the location for the
> file, and also the 'save' line if you use 'save' - that's also changed. If
> the script is short, just paste the whole script.
> 
> -- 
> Paul Berkowitz
> MVP Entourage
> 
> 
> PLEASE always state which version of Entourage you are using - 2001 or X.
> It's often impossible to answer your questions otherwise.
> 
> 
> -- 
> Paul Berkowitz

I'm using 10.2.3.

Here's the segment of the script:


on writefile(s, subj)
    try
        tell application "Finder" to activate
        set p to "10:Desktop:digest:"
        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


-- 
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/>

Reply via email to