Re: Confirming that a file is part of a Finder selection
Re: Confirming that a file is part of a Finder selection
- Subject: Re: Confirming that a file is part of a Finder selection
- From: Michelle Steiner <email@hidden>
- Date: Sat, 15 May 2010 18:44:13 -0700
On May 15, 2010, at 5:27 PM, Jens wrote: The result will be either the info.xml file or "no results produced". Feed that into your next action, but not knowing what that action is, I don't know how else to continue.
(it's compress. resulting in only a compressed info.xml if I use the filers approch.)
OK, try this.
First action is "get selected Finder items"
Second action is Run Applescript; with the following script:
on run {input, parameters} set foo to false tell application "Finder" repeat with i from 1 to count input if name of (get item i of input) is "info.xml" then set foo to true exit repeat end if end repeat end tell if foo then return input end run
The third action is "Create Archive" Check "Ignore unreadable items", and fill in the "Save as" edit field and choose where to save the file in the "Where" popup.
-- Michelle -- SNAFU is not just a saying; it's how things really are.
|
_______________________________________________
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