Re: open every item of saved search
Re: open every item of saved search
- Subject: Re: open every item of saved search
- From: "Michael Grant" <email@hidden>
- Date: Wed, 26 Nov 2008 09:59:16 -0600
On Wed, Nov 26, 2008 at 7:58 AM, Luther Fuller <email@hidden> wrote:
> I also got the reference to an "alias file" containing "folder """. I avoid
> that by using aliases to the items in the search window. Like this ...
>
> -- "TEST SEARCH" is the name of a . savedSearch file on my desktop
> tell application "Finder"
> set fileAlias to item "TEST SEARCH" of (path to desktop)
> open fileAlias
> set resultsList to (every item of window 1) as alias list
> open some item of resultsList
> end tell
>
> It worked for me!
Thanks, that's more elegant than what I finally came up with last
night, which was to apply GUI scripting (send a command-A, command-O
via System Events while the search window was open).
Michael
--
You have to be happy with what you have to be happy with what you have
to be happy with.
_______________________________________________
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