jonathanlaniado
-
Posts
2 -
Joined
-
Last visited
Reputation Activity
-
jonathanlaniado reacted to deanishe in Add "copy file" in file action
You can copy a file to the clipboard with AppleScript. This script will work on the command line and copy the first filepath passed to it to the clipboard:
on run (argv) set the clipboard to POSIX file (POSIX path of ((POSIX file (first item of argv)) as alias)) end run I don't think it's possible to copy more than one file to the clipboard without messing around with Cocoa.
Specifically, I believe you need to pass an NSArray of NSURLs to [NSPasteboard writeObjects:someArray].
-
jonathanlaniado reacted to wtellier in Search IMDB
Because the previously shared workflows for IMDB-integration didn't work anymore I made my own. This is my first publicly shared workflow and this is also my first python-script. Probably things could have been programmed better, but it works for now.
So its not really fancy, but I think its workable, as long as IMDB doesn't change the API. Hope this workflow is some use for you all.
https://github.com/wotell/alfred-workflow-imdb/blob/master/bin/Search%20IMDB.alfredworkflow