• 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: help needed - Broken (folder of front window)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help needed - Broken (folder of front window)


  • Subject: Re: help needed - Broken (folder of front window)
  • From: "Nigel Garvey" <email@hidden>
  • Date: Sun, 6 Jul 2008 11:11:56 +0100

Michael Cytrynowicz wrote on Fri, 4 Jul 2008 16:24:06 -0700:

>Hi all,
>
>Just installed Leopard, and several of my scripts broke, one of them
>here:
>
>tell application "Finder" to set the source_folder to (folder of the
>front window) as alias
>
>I get this error:
>
>"Can't make <<class cfol>> of window 1 of application "Finder" into
>type alias."

The syntax in OS X is:

  tell application "Finder" to set the source_folder to (target of the
front Finder window) as alias

Hopefully, this works in Leopard too, which I don't yet have to be able
to test it. You do also need to have at least one 'Finder window' open at
the time, of course.  :)

NG

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: help needed - Broken (folder of front window)
      • From: CYB <email@hidden>
  • Prev by Date: Re: "running" command issues
  • Next by Date: do shell script...password...with administrator privileges: another leopard bug?
  • Previous by thread: Re: help needed - Broken (folder of front window)
  • Next by thread: Re: help needed - Broken (folder of front window)
  • Index(es):
    • Date
    • Thread