Re: As Alias List?
Re: As Alias List?
- Subject: Re: As Alias List?
- From: Jim Skibbie <email@hidden>
- Date: Wed, 11 Dec 2013 21:28:10 +0000
- Thread-topic: As Alias List?
I'm on 10.8.5 and this script runs without error for me. On a Finder
window with no dmgs, the result is an empty list
-- {}
On a Finder window with dmgs, like my Download folder, I get a list of
aliases:
-- {alias "Macintosh HD:Users:jim:Downloads:ExifTool-9.33.dmg", alias
"Macintosh HD:Users:jim:Downloads:Fetch_5.6.dmg", alias "Macintosh
HD:Users:jim:Downloads:TeamViewer.dmg"}
Thanks.
Jim
On 12/11/13, Christopher Stone wrote:
>Hey Folks,
>
>If memory serves this code would not produce an alias list pre-Mavericks:
>
>--------------------------------------------------------------------------
>-----------------
>
>tell application "Finder"
> set _target to target of front window as alias
> set fileList to (files of _target whose name extension is "dmg") as
>alias list
>end tell
>
>--------------------------------------------------------------------------
>-----------------
>
>But on Mavericks it works.
>
>Can someone still on Mountain Lion confirm?
>
>Thank you.
>
>--
>Best Regards,
>Chris
_______________________________________________
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