• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Confirming that a file is part of a Finder selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Confirming that a file is part of a Finder selection
      • From: Thomas Fischer <email@hidden>
References: 
 >Confirming that a file is part of a Finder selection (From: "Jens" <email@hidden>)
 >Re: Confirming that a file is part of a Finder selection (From: Michelle Steiner <email@hidden>)
 >Re: Confirming that a file is part of a Finder selection (From: "Jens" <email@hidden>)

  • Prev by Date: Re: Confirming that a file is part of a Finder selection
  • Next by Date: Re: Confirming that a file is part of a Finder selection
  • Previous by thread: Re: Confirming that a file is part of a Finder selection
  • Next by thread: Re: Confirming that a file is part of a Finder selection
  • Index(es):
    • Date
    • Thread