Re: help needed - Broken (folder of front window)
Re: help needed - Broken (folder of front window)
- Subject: Re: help needed - Broken (folder of front window)
- From: Matt Neuburg <email@hidden>
- Date: Sun, 06 Jul 2008 12:21:18 -0700
- Thread-topic: help needed - Broken (folder of front window)
On Fri, 4 Jul 2008 16:24:06 -0700, Michael Cytrynowicz <email@hidden>
said:
>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
Works fine here. I don't believe the problem has anything to do with the
fact that you installed Leopard.
>I get this error:
>
>"Can't make <<class cfol>> of window 1 of application "Finder" into
>type alias."
>
>What's happening?
No window is open in the Finder. Catching the error (or testing first for
the existence of open windows) is up to your script... m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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