Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Select files in Finder from Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Select files in Finder from Terminal
Authored by: cougar718 on May 24, '06 08:56:48PM

If you're going to go to the extent of draggging and dropping files on to a droplet, why would you not select the files instead of dragging them.

I think the hint needs to select the files from the shell and simply show them to the user which the Finder does automatically via AppleScript when you choose to reveal a reference.

As of right now, ever's solution below seems to be unusable because you can only select 1 file.

I'm not sure if AppleScript can handle multiple files references from BASH. The best solution for this hint is to use BASH scripting and create a shell script which calls osascript -e and compile AppleScript code on the fly.

Good luck! If I figure anything out, I'll reply.

---
Rick alias cougar



[ Reply to This | # ]
Select files in Finder from Terminal
Authored by: ever on May 25, '06 09:43:33AM

Hehe, unusable for you, maybe. :p There is no dragging and dropping involved of course. It could use accepting multiple files tho, I didn't catch that. That appears to be a limitation of the open -a command though, as my droplet can accept and select multiple file references simultaneously as-is. Hmm. Oh well, I'll never use it anyway. :)



[ Reply to This | # ]