• 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: [newbie] extract POSIX path from dropped folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [newbie] extract POSIX path from dropped folder


  • Subject: Re: [newbie] extract POSIX path from dropped folder
  • From: Michelle Steiner <email@hidden>
  • Date: Sat, 21 Jul 2007 11:31:31 -0700

On Jul 21, 2007, at 10:43 AM, Michael Warner wrote:

I have a folder that drops onto a droplet.

I want to extract the full POSIX path of the folder itself as a string.

Can someone point me to  a script that does this, or  send me the
relevant  lines of code?

on open {theitem} display dialog POSIX path of theitem end open

Using braces instead of parentheses guarantees that if you inadvertently drag more than one item onto the droplet, only the first item will be processed. With parentheses, you would either have to do a loop to process all of the items or explicitly extract the first item.

-- Michelle

--
I am a pseudomasochist..  I like it when people pretend to beat me.


_______________________________________________ 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
References: 
 >[newbie] extract POSIX path from dropped folder (From: Michael Warner <email@hidden>)

  • Prev by Date: re. lotteries, alternatives, new dawns, etc. (was Re: Finding Filenames that contain a certain string)
  • Next by Date: Re: Finding Filenames that contain a certain string
  • Previous by thread: [newbie] extract POSIX path from dropped folder
  • Next by thread: re. lotteries, alternatives, new dawns, etc. (was Re: Finding Filenames that contain a certain string)
  • Index(es):
    • Date
    • Thread