• 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: How to get all file paths from the clipboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get all file paths from the clipboard


  • Subject: Re: How to get all file paths from the clipboard
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 17 Dec 2010 10:24:43 +1100
  • Thread-topic: How to get all file paths from the clipboard

On 17/12/10 10:10 AM, "KOENIG Yvan" <email@hidden> wrote:

> When you select several files from the Finder, they are all in the same
> folder.

Not if you select by command-clicking and you have folders expanded in list
view.

But given that what you say is *usually* true, the combination of you're
method plus a check that such files exist would go close.

FWIW, this would get you there in AppleScriptObjC:

-- get the pasteboard
tell current application's NSPasteboard to set pb to generalPasteboard()
-- read its URLs
tell pb to readObjectsForClasses_options_({current application's |NSURL|},
{NSPasteboardURLReadingFileURLsOnlyKey:1})

--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


 _______________________________________________
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: 
 >Re: How to get all file paths from the clipboard (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: How to get all file paths from the clipboard
  • Next by Date: Re: Was: Re: What Use Autofill
  • Previous by thread: Re: How to get all file paths from the clipboard
  • Next by thread: IRController
  • Index(es):
    • Date
    • Thread