Re: Scripts no longer work in 9.2.2
Re: Scripts no longer work in 9.2.2
- Subject: Re: Scripts no longer work in 9.2.2
- From: Jolly Roger <email@hidden>
- Date: Thu, 06 Dec 2001 09:50:19 -0600
On 12/6/2001 8:40 AM, "Palmer, Will" <email@hidden> wrote:
>
Many of my scripts that refer to "constant" folders (i.e. System,
>
Extensions, etc) no longer work. I get this error "Finder got an error: File
>
extensions folder wasn't found."
>
>
From this code:
>
tell application "Finder"
>
set infodate3 to get (info for extensions folder) as record
>
end tell
>
>
Maybe I was never doing it correctly, but it worked. Any help or suggestions
>
would be greatly appreciated.
1) You don't need to tell the Finder.
None of the commands you are using here belong to the Finder. Try to get
yourself out of this bad habit. Doing this may actually slow your script
down since the script may end up waiting for the Finder to respond.
2) You don't need the "as record" part, because the result of the "info for"
command is already a record.
3) Try using the "path to" command and see if it works:
set infodate3 to the info for the (path to the extensions folder)
HTH
JR