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: "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