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


Click here to return to the 'Use a free program to simplify dragging from Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use a free program to simplify dragging from Terminal
Authored by: rogov on Aug 29, '07 04:08:56PM

No, this is actually pretty slick.

I am a voracious user of 'open', but it has limitations. Also people suggesting 'open .' ignore that this will create a .DS_Store file in the directory which this hint implies that Drag.app avoids. Toolchain support to avoid unintentional .DS_Store creation can be very handy at times.

One example where 'open -a' is limited is when you need to drag something into an application, but the operation is more contextual than just dropping anywhere. For example, when an application opens a file dialog to select a file, sometimes it's convenient to drag a file onto the dialog directly rather than traversing the file tree or searching for it. Another example is that I suspect 'open -a' wouldn't do what you hope for dragging into drop zones like iDVD and iMovie have.


The selectfile script opens a Finder window, thus creating the .DS_Store. Also, the selectfile script seems to fail for me with multiple files listed.

Don't know about QuickSilver.


It would be good for this program to handle spaces and special characters though. And another feature which may not be possible would be to support undo for when you drag to relocate files.






[ Reply to This | # ]
Use a free program to simplify dragging from Terminal
Authored by: rogov on Aug 29, '07 05:16:09PM

Actually, I just tried paths and file names with spaces for Drag.app and it does work for me.



[ Reply to This | # ]
Use a free program to simplify dragging from Terminal
Authored by: rogov on Aug 29, '07 05:44:23PM

Oh, I see. The actual Drag.app works fine if you directly invoke it:
/Applications/Drag.app/Contents/MacOS/Drag Some\ Dir\Some\ File.txt

But if you use the drag shell script to invoke it, the shell script seems to mangle the argument string. I'm not sure how to fix the shell script though.



[ Reply to This | # ]