Re: How to get all file paths from the clipboard
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