• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripts no longer work in 9.2.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: interesting discovery (trying to get record labels as strings)
  • Next by Date: Re: Scripts no longer work in 9.2.2
  • Previous by thread: Re: Scripts no longer work in 9.2.2
  • Next by thread: RE: Scripts no longer work in 9.2.2
  • Index(es):
    • Date
    • Thread