Re: This worked yesterday: File path question
Re: This worked yesterday: File path question
- Subject: Re: This worked yesterday: File path question
- From: Nigel Garvey <email@hidden>
- Date: Sat, 16 Dec 2000 11:56:15 +0000
Preston Smith wrote on Thu, 14 Dec 2000 14:56:28 -0600:
>
File path issues confound me.
>
>
A longish script containing the line;
>
open file "G4 HD:MSO Show Log database:CD log project copy 1"
>
stopped working, giving me a -120 error. This is a script I use several
>
times a week.
>
>
Changing to "open file alias..." got it to start working again.
>
>
I don't think that I moved the location of the file I'm pointing to, so I'm
>
confused. BTW, another file referred to in the same folder wouldn't work
>
properly till I changed it to an alias reference.
>
>
Is it best to always use the alias reference, even if you think the file
>
isn't going to move?
Error -120 is actually a folder error. The message displayed by a test
script in my Script Editor is "Could not open the document because of a
disk error.", but according to the AppleScript Language Guide, it means
"Folder <name> wasn't found." It looks as though your folder's being
moved or renamed at some point between the compilation of the script and
the execution of that line.
NG