Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > drag&drop via command line?

drag&drop via command line?
Thread Tools
Fresh-Faced Recruit
Join Date: Feb 2007
Status: Offline
Reply With Quote
Feb 28, 2007, 04:41 PM
 
I use a compression utility called 7zX to compress files, but 7zX doesn't offer a way to decompress the files from the command line. The only way to decompress them is to drag the file onto the 7zX.app icon. I want to write a login hook that will automatically connect to our FTP server, download the compressed file, automatically decompress it and place it in its destination folder, then delete itself. I've got everything down except how I replicate the drag & drop requirement of 7zX via the command line. Any help?
     
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Feb 28, 2007, 05:47 PM
 
AppleScript maybe, if 7zX is scriptable.
     
Junior Member
Join Date: Mar 2000
Location: Salem, OR, USA
Status: Offline
Reply With Quote
Mar 28, 2007, 11:16 PM
 
At first I was a little worried that this was going to be impossible, but I figured out a solution.

open -a 7xZ /path/to/archive/file

How sweet is this?

This says, "open", "with application 7xZ", "your file"

-numero
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:47 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2