vindoe Posted April 17, 2013 Posted April 17, 2013 Hi! As long as i used Alfred V1 i was happy tu use the copypath extension from http://johnfraney.ca/ Now i switched to Alfred V2 and i cannot use this feature anymore. I tried to find a conversion but without success. I also tried to built a workflow myself but i did not get it up running. The old extension was an apple script running in background: tell application "Finder" to set theItems to selection set thePaths to "" repeat with i in theItems set thisItem to POSIX path of (i as alias) set thePaths to thePaths & thisItem & return end repeat set the clipboard to thePaths I set this up with a keyword / hotkey but nothing happens. Anyone who can help me with that? Kind regards Mike Hamburg / Germany
Andrew Posted April 17, 2013 Posted April 17, 2013 Hi! As long as i used Alfred V1 i was happy tu use the copypath extension from http://johnfraney.ca/ Now i switched to Alfred V2 and i cannot use this feature anymore. I tried to find a conversion but without success. I also tried to built a workflow myself but i did not get it up running. The old extension was an apple script running in background: tell application "Finder" to set theItems to selection set thePaths to "" repeat with i in theItems set thisItem to POSIX path of (i as alias) set thePaths to thePaths & thisItem & return end repeat set the clipboard to thePaths I set this up with a keyword / hotkey but nothing happens. Anyone who can help me with that? Kind regards Mike Hamburg / Germany Unless I've misunderstood what you are looking for, you should just be able to use cmd+c on the selected item in Alfred to copy the path for that item Edit: Ahh I see you mean copy the finder items paths. That AppleScript should work too if you put it in a workflow Run Script action (osascript) attached from a hotkey.
vindoe Posted April 17, 2013 Author Posted April 17, 2013 Hi Andrew! That was fast I did that: http://minus.com/mk6JUDBzrAw59 (hope you can see the screenshots) Instead of shortcut i also tried keyword but that did not helped either. The path is not copied to the clipboard. Simply nothing happens... Do i have to activate the workflow?
jdfwarrior Posted April 17, 2013 Posted April 17, 2013 Hi Andrew! That was fast I did that: http://minus.com/mk6JUDBzrAw59 (hope you can see the screenshots) Instead of shortcut i also tried keyword but that did not helped either. The path is not copied to the clipboard. Simply nothing happens... Do i have to activate the workflow? You are using a different script in the screenshot than what you are in the previous post. The script from the previous post, when pasted into the script area should work as expected. I was able to take the code and paste it in, set the language and it worked perfectly. I used a keyword to execute it. You also have a mistake in the code from the screenshot. You have: tell application "Finder"e and it should be: tell application "Finder"
vindoe Posted April 17, 2013 Author Posted April 17, 2013 Hi David, Thank's! Now it works. I think it was the copy&paste error ("Finder"e). Now i've got my favourite Alfred extension back runnig. By the way this forum is the first i used where i got quick help and a solution. Thank you all! Mike
Andrew Posted April 17, 2013 Posted April 17, 2013 By the way this forum is the first i used where i got quick help and a solution. Thank you all! Mike That's great to hear!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now