Command line - Set default app

Can someone tell me how to change the default ftp helper application for OS 10.5 via the command line?
Thanks!

As most probably know, there are issues with Apple's implementation of FTP via the Finder.
The company I work with delivers product by FTP and to quite a number of Mac users who, when using the Finder, come upon issues.
For ease of use, I recommend Firefox which does a nice job of FTP. But Firefox doesn't offer a way to change the default helper app for the ftp:// protocol. I know Cyberduck, MoreInternet, the old IE and Fetch do but most just want to use a browser and suggesting IE isn't good.
I'm just attempting to find a easy way to set this without telling clients to download & install a horde of apps.
Message was edited by: Alan Brooks1

Similar Messages

  • How to pass command-line options to app using the "open" command?

    I am using jedit, and since I'm doing a lot of stuff in a shell, I'd really like to launch it from the command line as though I'd opened from finder, so I wrote a script that contains this:
    open -a /Applications/Jedit.app "$@" &
    This works well for everything except NEW files, where I get this error:
    2007-02-16 19:29:48.072 open[1032] No such file: /Users/millerti/projects/ateon/new_file
    Is there a way I can override this?
    So, it occurred to me that I might try running jedit directly this way:
    /Applications/Jedit.app/Contents/MacOS/jedit -- "$@" &
    The trouble is that this suffers all sorts of weird problems. For instance, if there's already a jedit running, it launches another one (despite the fact that -server is default). Moreover, the file it opens, existing or not, is not the one I specify. If I'm in ~/mydir and I open ./myfile, jedit opens instead /Applications/myfile.
    Obviously, I'm doing something wrong. Can someone help me figure out what open is doing internally so that I can launch jedit compatible with how open does it so that I can both open existing files and create new ones the same way from the command line?
    BTW, I can make more complex script.
    Also, if this isn't the right forum for this, can someone tell me where would be a better place to get the question answered?
    And I'm not expecting to get jedit support here. This isn't a jedit problem because it's behaving correctly.
    Thanks.

    Applications rarely take command line arguments. I don't know anything about Jedit, whether that is an exception, but you are not sending an argument to Jedit with the open command. The file name on your command line is an argument to the open command. The open command says "open this file with the specified application". The application doesn't see the argument. It sees the file exactly as if it were opened from the Finder. That's why naming a non-existent file doesn't work.
    What if you open Jedit with no file, create a new document in the application. (Again, I am not familiar with Jedit.)

  • Setting Default apps with minimal WMs (dwm, awesome, etc)

    How are folks running WMs like awesome and dwm setting their default applications (I'm particularly interested in the web-browser setting)?
    On past systems, I've had GNOME installed, and just used the preferred applications dialogue, but that's not the case in my current system.
    Does anyone know where dwm/awesome look for default app settings, and how I'm able to change those settings?

    For example, in your shell config:
    export BROWSER="your-browser"
    There's nothing like that in either Awesome or dwm. And I don't think one really needs it. In case you want to open certain file types in dedicated applications, you can e.g. define aliases to achieve this. (Everything depends on the shell you use, or the file manager. In my case Midnight Commander together with zsh does the job well.)
    Edit: consider me slowww, always a couple of minutes slowwwer.
    Last edited by bohoomil (2011-03-15 21:57:44)

  • Command line set saveable of QT

    I cant seem to find checkbox in my QTpro app.
    Does anyone know how I may set saveable of a quicktime movie to "false" from the command line?
    thanks
    Mark

    I don't know the answer to your question, but it might be here:
    http://www.subservientastronaut.com/sw/qt_tools/

  • Command line set time

    My kid's iMac doesn't check the time very often even though it is set to do so automatically. Back when I was on linux I could write a little shell program to get the correct time off the network and set the computer's clock and then put the program in crontab. I'd like to do this for his computer but don't know
    how. Thanks, Steve

    Maybe it doesn't check the time because of the
    firewall? If the firewall is turned on in System
    Preference > Sharing, check "Allow: Network Time".
    Got it! Thanks. Why my computer was set appropriately
    and my son's wasn't, I don't know, but this should fix it.
    (I didn't even know about this setting.)
    Thanks, Steve
    (This solved the problem but didn't answer my question. I'm
    an escapee from Linux. I like command line options (but of
    course don't need it here anymore), in particular, I wish there
    were command line options for iCal.)

  • Set default app for generic files

    I don't know when this started happening, but some OSX update broke my opening generic files. Now when I doubleclick the generic file icon it opens in Microsoft Word, which is unacceptable. So I deleted Word and now the files open in a genealogy application, which has to throw a number of error dialogs before it can be closed.
    How do generic files know to open in the genealogy app? Is this something in Launch Services I can change to set them to open in a decent UNIX editor? This bugs me, because it all worked well until a few months ago.
    If I say:
    defaults read com.apple.LaunchServices 'LSHandlers'
    the resulting text contains:
    LSHandlerContentTag = ged;
    LSHandlerContentTagClass = "public.filename-extension";
    LSHandlerIgnoreCreator = 1;
    LSHandlerRoleAll = "uk.ac.qmw.dcs.seegedcomx";
    seegedcomx is the app that now opens all generic files. Is there a way to set this to a proper application?

    More than likely it's a LaunchServices problem and you should reset its database. See http://www.thexlab.com/faqs/resetlaunchservices.html for details.

  • Command line set of retention?

    Greetings. I'm in a situation in which several thousand users are spread across about 12 POs. I have to manually verify that many of these users are flagged for retention using the MA GWarchive product.
    Right now, I have to do this via the GUI in ConsoleOne and verify in the Client Options->Environment that the flag on the retention tab is selected.
    Any way to get at that programtically? Anything possible using the Admin Object API?
    Thanks.

    gchamby wrote:
    > Greetings. I'm in a situation in which several thousand users are spread
    > across about 12 POs. I have to manually verify that many of these users
    > are flagged for retention using the MA GWarchive product.
    > Right now, I have to do this via the GUI in ConsoleOne and verify in
    > the Client Options->Environment that the flag on the retention tab is
    > selected.
    > Any way to get at that programtically? Anything possible using the
    > Admin Object API?
    >
    > Thanks.
    >
    >
    Nope. GWTIMESTSAMP let's you query/set the timestamp itself, but not I
    believe the enforcement.

  • Connect/disconnect RRAS demand dial from command line

    I'm trying to find a way to connect and disconnect a RRAS demand dial interface via command line. The catch is that it needs to work on Windows Server 2008...2008 R2 would let me do it with netsh, but 2008 doesn't have the same version of netsh, unfortunately.
    Rasdial was my next stop, but it doesn't seem to list demand dial connections. If I use rasdial, it does show any connections currently connected, but if I disconnect one and try to connect it again, it says it's not in the address book. Also, it won't let me disconnect and gives me a permissions error.
    You would think you could do this via Powershell, but I can't find anything about it...nothing. You can certainly do it using cmdlets in 2012, but I can't find anything about 2008.
    Any suggestions?
    This topic first appeared in the Spiceworks Community

    Probably not what you are looking for, but depending on what you mean by managing the connection from the command line, AppleScript via 'osascript' should work if there is someone is logged in. For example, assuming everything is already set up in terms of passwords, etc.:<pre>osascript -e 'tell application "Internet Connect" to connect'</pre>So you are technically managing it from the command line, but the app has to launch in the GUI...

  • Hide command line ebs password

    Hi All,
    is there a way to hide command line password for apps user.
    when start or stop ebs apps from command line, i have to type
    $adstrtal.sh apps/apps
    is there a way to hide this password.
    Thanks in advance.

    Hi,
    I do not think there is a direct way to do this. However, look at this document and see if it helps.
    Note: 377858.1 - Use Encrypt To Prevent Apps Pwd Being Displayed In Log/Sql Script
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=377858.1
    Another option would be calling "adstrtal.sh apps/<apps password>" from some other script.
    Regards,
    Hussein

  • Invoke Labview applicatio​n from Command line

    hi,
    I have a labview program which does some analysis on my Test data.
    My application is that,i have a Test sequencer program(Different application) which collects data and stores it in .dat file.
    After this i invoke exe of Labview Analysis program from Test sequencer & i enter the Test data filename as a command line argument.
    My first step in  analysis program is read command line argument(thru App.Args property) & get filename(the command line gives array output , index 0 will be Labview,index 1 will show filename)
    This works absolutely fine.
    I made a copy of this analysis prog to include some more functionalities and renamed it as different Labview program(prog structure is same) & trying to do the same abovesaid process.
    But somehow im not able to get Command line arg(basically here filename) passed to labview.
    The error im getting is that it's showing the path of my application (say if my application is in C)."C:\xxxx.dat is not a LABVIEW data file".
    My question is:
    Is there any settings changes to be done for Command line args property node when we make a copy from one prog to other prog.? Im not having clue why this should occur?
    -Murali

    Just to confirm I understand what you are asking... you copied the App.Args property from one vi to another, compiled the new vi to an exe, new exe doesn't receive the command line parameters.
    Did you make sure the "Pass all command line arguments to application" check box (in the 'Advanced' category of the application builder) was checked for the new application?
    Troy
    CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
    I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
    Beware of the man who won't be bothered with details. - William Feather
    The greatest of faults is to be conscious of none. - Thomas Carlyle

  • How I can set my default browser mozilla firefox from the command line in Windows 7?

    I need to set my default browser mozilla firefox from the command line, ie without using the GUI.

    '''-setDefaultBrowser''' is the correct command - you need the two capital letters.
    Why Firefox 17.0.1? You would be missing a number of important security updates. Firefox 17.0.'''9''' is the current ESR release version.

  • HT1277 I want to set up my email composition with a default me@alumni.myschool.edu address that is different from my ISP.  How do I configure?  Command line OK with me.

    Hi everyone,
    I want to set up my email composition with a default [email protected] address in the "Reply-to" field that is different from my ISP.  How do I configure mail to set this default? 
    I have looked through the help and fail to see an option in the Preferences -> Compose window. 
    I am OK with UNIX Command line tasks if that is the only way to set this default.
    Basically I have an alumni email redirection service, which is an address that never changes, even if I change ISP.  That way all my friends can use it an never change.  However, they tend to use whatever ISP address is, not what I have asked them to use. 
    I want to force emails I send to default to my alumni address when my friends reply, not my ISP address.  I want control over this.

    Confused Once Again wrote:
    I want to set up my email composition with a default [email protected] address in the "Reply-to" field that is different from my ISP.  How do I configure mail to set this default? 
    Email preferences --> select Account --> Account Information tab --> Email address.
    The Email address setting supplies the "from" mail address in a sent email for that account.
    I  been doing this for years (well in Eudora but it works in Mail too) since my return address is a mail forwarding service.  That lets me switch ISP's and no one is ever the wiser.  I just change the forwarding service "pointer" to point to my new ISP.  But everyone else see sees the same "from" address as it's always been.

  • How to change "open with" defaults via command line?!?

    folks,
    i know that if i get info on a file -- in this case, a filemaker 5.5 file -- i can choose the default "open with" settings and apply those settings to all files of that kind. see the attached image for what i mean.
    but how do i do that via the command line?
    thus far, here's what i've got: i know that i can open a document called "scrubbing shell.sh" on my desktop WITH either MS Word of TextEdit by calling:
    open -a textedit /Users/david/Desktop/scrubbing-shell.sh
    or
    open -a Microsoft\ Word /Users/david/Desktop/scrubbing-shell.sh
    no sweat. BUT....how do i set the defaults so that it ALWAYS opens with that app in the future when double-clicking via the GUI?
    many thanks, ya'll!
    david koff
    associate systems admin
    the j. paul getty trust
    dkoff AT getty DOT edu

    Hi David,
       OK, I investigated the new format and treatment. It appears that the first entry in the property list file that matches the file being opened wins. The Finder may still honor the new format; when I moved my old Panther file into Tiger it seemed to work. However, in other ways, the Finder doesn't recognize the old format, which is the format of the FileMaker entries you posted.
       The Finder puts all of the new format entries at the beginning of the property list file. If you change a preference that was controlled by an old format entry, the Finder won't edit that entry. What it will do is to create a new entry in the new format closer to the beginning of the file than any of the old-format entries. SInce the new entry comes first, the old one doesn't apply. If you then edit the preference and change it back to what it was before, the Finder will edit the new entry. Consider the following sequence of events and commands:
    % cp ~/Library/Preferences/com.apple.LaunchServices.plist ~/Library/Preferences/com.apple.LaunchServices_copy.plist
    I change all GIF files to be opened by GraphicConverter instead of Preview, which is an old setting in the old format.
    % plutil -convert xml1 ~/Library/Preferences/com.apple.LaunchServices.plist
    % diff --text ~/Library/Preferences/com.apple.LaunchServices.plist ~/Library/Preferences/com.apple.LaunchServices_copy.plist
    404,409d403
    <      <dict>
    <         <key>LSHandlerContentType</key>
    <         <string>com.compuserve.gif</string>
    <         <key>LSHandlerRoleAll</key>
    <         <string>com.lemkesoft.graphicconverter</string>
    <      </dict>
    Then I change all the GIF files to be opened by Preview again.
    % plutil -convert xml1 ~/Library/Preferences/com.apple.LaunchServices.plist
    % cp ~/Library/Preferences/com.apple.LaunchServices.plist ~/Library/Preferences/com.apple.LaunchServices_copy2.plist
    % diff --text ~/Library/Preferences/com.apple.LaunchServices.plist ~/Library/Preferences/com.apple.LaunchServices_copy.plist
    404,409d403
    <       <dict>
    <          <key>LSHandlerContentType</key>
    <          <string>com.compuserve.gif</string>
    <          <key>LSHandlerRoleAll</key>
    <          <string>com.apple.preview</string>
    <       </dict>
    % diff --text ~/Library/Preferences/com.apple.LaunchServices.plist ~/Library/Preferences/com.apple.LaunchServices_copy2.plist
    408c408
    <          <string>com.apple.preview</string>
              <string>com.lemkesoft.graphicconverter</string>
       Note that I had to change the file to text after every change because the Finder converted the file to binary format every time it edited it. I didn't have to logout or reboot; the property list file change less than a second after the preference was set. I'm guessing that because you were just looking at the old-format entry, you missed the real changes to your property list file. Did it change from text to binary format? Try the command line tools that I used above.
       Note that this means that it matters where you put your entries in the property list file if you edit it.
    Gary
    ~~~~
       There are only 10 kinds of people in the world. Those
       who understand binary numbers and those who don't.

  • Command to set firefox as default does not work

    After setting chrome as my default browser, I want to set Firefox as my default browser from the command line on windows.
    According to http://kb.mozillazine.org/Default_browser I ran
    firefox.exe -silent -setDefaultBrowser
    But that does not work. Chrome stays as the default browser. Setting FF as the default from the FF dialog (asking to set as default) works but I want to do it from the commandline.

    We have a support article on that: [[Make Firefox the default browser on Android]]. When trying to determine the current default browser app, I think Samsung's is called "Internet".

  • Command line webcam apps

    On my old PowerPC iBook I used Videoscript and the macam webcam driver with a CGI system I wrote to take webcam pictures via a webpage, from my external Logitech Quickcam Pro 4000. With my relatively new Intel-based iMac I'm not having any success in getting Videoscript to take pics.
    My question- has anyone used Videoscript with an Intel Mac, or in general, any suggestions as to command line-based apps to take a picture with an external camera? I tried macaw, but the pics all come out dark, and isightcapture, which seems good in general, but I haven't determined how to make it use the external cam rather than the built-in...
    iMac   Mac OS X (10.4.8)  

    Thanks for the reply. Yeah, I'd tried -d as well as different -i options. The -d debugging output is below, and "-i 0" and "-i 1" both result in the built-in camera being used, and anything above 1 results in this error:
    <pre>
    DEBUG: initialize toolbox
    DEBUG: opening default component
    DEBUG: querying component list
    DEBUG: query component list
    DEBUG: found component
    FATAL: sequence grabber component not found, cam not connected ?
    </pre>
    wacaw actually has a -L (list) option, which lists available inputs, which is an option I'd expect isightcapture to have, since it has the -i. This is what it returns:
    <pre>
    There are 4 devices in the list.
    The current selection is 3.
    0 - DV Video [available] [not inputs]
    1 - IIDC FireWire Video [available] [not inputs]
    2 - Logitech QuickCam Pro 4000 [available] [not inputs]
    There are 1 inputs for this device.
    The current selection is 0.
    0 - Logitech QuickCam Pro 4000 #0 [available]
    3 - USB Video Class Video [available] [could be inputs]
    There are 1 inputs for this device.
    The current selection is 0.
    0 - Built-in iSight [available]
    </pre>
    So they don't match the 0 and 1 that isightcapture accepts.
    The isightcapture -d output:
    <pre>
    DEBUG: initialize toolbox
    DEBUG: opening default component
    DEBUG: querying component list
    DEBUG: query component list
    DEBUG: found component
    DEBUG: initialize default
    DEBUG: setting data ref
    DEBUG: setting channel
    DEBUG: create gworld
    DEBUG: setup gworld
    DEBUG: setup channel bounds
    DEBUG: setup channel usage
    DEBUG: setup data proc
    DEBUG: prepare
    DEBUG: start recording
    DEBUG: setup decompression
    DEBUG: getting channel discription
    DEBUG: setup decompression sequence
    DEBUG: entering grabber loop
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: received frame
    DEBUG: successfully captured frame
    DEBUG: exporting image...
    </pre>
    I emailed the auther last night, so we'll see... Thanks a lot.

Maybe you are looking for