• 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: "Jens" <email@hidden>
  • Date: Sun, 16 May 2010 02:27:18 +0200 (CEST)

Sent: Sat, 15 May 2010 15:27:30 -0700, From: Michelle Steiner
> On May 15, 2010, at 1:53 PM, Jens wrote:
> > I am writing an Service in Automator that takes a selection from Finder and does a few things with them. However, I want to make sure that the file "info.xml" is included in that selection. (For example, that the user MUST have selected info.xml AND then optionally one ore more other files/folders.)
> >
> > How can I confirm this before moving on with my workflow?
> >
>
>
> First action would be "Get Selected Finder Items"
> Second action would be "Filter Finder Items"
>   All of the following are true:
>     Name is info.xml

The problem is that "Filter" also means exclude. So it would exclude all other selected files, which is not what I want.


> 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.)
--
Jens _______________________________________________
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: Michelle Steiner <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>)

  • Prev by Date: Re: Open Finder Window to a Directory
  • 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