Safari Download Location Tweak/Hack/Command Line

Is there a non-standard way to make Safari ask for a location before each download?
I know this is not an option in the standard (and limited) settings. I'm asking about something along the lines of a command line ("Launch Terminal and issue this command...") or a utility like the old Safari Speed (which, I know, doesn't do this...just using it as an example of type) or some .plist file I could manually edit and change a 1 to a 0 or something.
Thanks,
Byron

Thanks.
Control-click works if the link is directly to the file in question (like http://fileserver.com/fileyouwant.dmg) but tends to yield unsatisfactory results when the download link is actually a script or executable that prompts the server to begin sending a file. In that latter case, one can end up with a file like "download.exe" on my Mac instead of the file one actually wants.

Similar Messages

  • Get GPS location from the command line

    Is there a utility to get the current GPS location from the command line?  A quick search says `geo` will do it, but that appears to come with the android dev tools, which I'd rather not install right now.  The reason I want to do this is to avoid hard-coding my coordinates in a call to `redshift`.

    enduser wrote:
    Hmm.. `gpspipe` gives me:
    gpspipe: could not connect to gpsd localhost:2947, Unknown error -6(-6)
    And `gpsd` gives me:
    gpsd:ERROR: can't run with neither control socket nor devices
    Do I need to be root for these applications? Alternatively, could I maybe just grab the timezone from /etc/localtime and use that? (though I guess that doesn't get close enough on longitude...)
    You have to start gpsd from systemctl.  And you can plug/unplug gps devices at will, so it can be enabled in systemctl whether or not an actual gps is always available.

  • Turning on location services via command line

    It is possible in Mountain Lion or Mavericks to turn on location services via a shell script as might be used via Apple Remote Desktop or DeployStudio or similar. An example script to do this is listed below.
    #!/bin/sh
    /bin/launchctl unload /System/Library/LaunchDaemons/com.apple.locationd.plist
    uuid=`/usr/sbin/system_profiler SPHardwareDataType | /usr/bin/grep "Hardware UUID" | /usr/bin/cut -c22-57`
    /usr/bin/defaults write /var/db/locationd/Library/Preferences/ByHost/com.apple.locationd.$uuid LocationServicesEnabled -int 1
    chown -R _locationd:_locationd /var/db/locationd
    /bin/launchctl load /System/Library/LaunchDaemons/com.apple.locationd.plist
    exit 0
    The script turns location services off, finds the Macs unique hardware UUID number, sets the preference file for this Mac which has a file name unique to this Mac because the file name includes the UUID number, restores ownership of the file as the defaults command will have possibly changed the owner, and then turns location services back on.
    As mentioned the above will work for Mountain Lion and Mavericks. Unfortunately Lion even though it also has location services its method of confuguring is totally different.
    Does anyone have a similar command line solution to enable location services for Lion (aka OS X 10.7).

    THis should work:
    #!/bin/sh
    launchctl unload /System/Library/LaunchDaemons/com.apple.locationd.plist
    defaults write /System/Library/LaunchDaemons/com.apple.locationd Disabled -bool false
    launchctl load /System/Library/LaunchDaemons/com.apple.locationd.plist
    exit 0

  • Safari download location

    Hi.
    I apologize if this is a duplicate question.  I've seen it posted before but I've never quite seen an answer.  I am running version 5.1.7 of Safari and there is no way to make it prompt every time I attempt to download a file (unless I've missed something). 
    I sometimes have the option of right clicking and choosing 'save as' but sometimes links are to scripts which push downloads and so that doesn't work.
    Any help would be appreciated!

    This drives me out of my mind as well.
    What some people do not realize is that many (probably a mojority) of downloadable files on the Internet ARE NOT diretly linked. Theres often some manner of script or redirect in front of it.
    SO - this renders the 'right-click -> save-as' solution useless.
    Also - if I'm trolling for downloads, I can easily find myseld downloading upwards of 30-50 files in a single 'browsing session'. So, the idea that I can just open preference 50 times and change the destination directory is absurd.
    EVERY other major browser on the market - for every platform - has this as an option. JUST PROMPT ME EVERY TIME! Safari is the only browser that does not.
    Apple - PLEASE PLEASE fix this!

  • How do I reset Safari (clear cache) from the command line?

    I have a macmini that runs in Safari in kiosk mode. I would like to be able to ssh into it and clear the browser cache. I don't have access to the system via a keyboard or mouse. Which files do I need to edit? Do I need to restart Safari after I make changes?
    J

    I have a macmini that runs in Safari in kiosk mode. I would like to be able to ssh into it and clear the browser cache. I don't have access to the system via a keyboard or mouse. Which files do I need to edit? Do I need to restart Safari after I make changes?
    J

  • Package command line app with AIR app

    Forgive me if I seem completely dense, but I've been googling and forum finding and hair pulling all day on this.
    I wrote a command line application and I call it from my air application.  It all works just fine, but right now the location of the command line application is hard coded.  I want to know:
    1) What is the actionscript that allows me to refer my nativeProcess call to a an application that is packaged with the air app when I export?
    2) Where do I place the command line application in the file system of flash builder to bundle it with everything when I export?
    I realize it'll be different for mac and windows, but I need to do both.  I'm starting with the mac.  Right now as far as I know I can put the command line app in the source folder and that all ends up in the .app/contents/resources folder, but I'm not exactly sure how to reference that in actionscript or if I can or if I should?  I don't know.  Clue me in?

    Can you not use File.applicationDirectory.url as a base?

  • Starting Safari with command-line options

    I am an old Unix Hacker who just started with Mac. Since scripting is an important
    part of old-school UNIX, I do many things via scripting.
    My question is: Is there a way to start Safari from the command line using command-line
    options that will allow Safari to open up multiple tabs with each tab pointing to a pre-defined
    URL?
    Thanks,
    msprewitt

    Hi,
    Type this in terminal,
    open http://www.google.com http://www.yahoo.com
    It will open the two web pages in two tabs. man open for more option.

  • How do I run Safari with a proxy on start up by command line?

    Hello,
    I am using a piece of software called Sahi to perform automated testing of websites. It uses a local proxy to accomplish this task, so it runs the browser with parameters needed so that that instance of the browser is running with the proxy settings. For some reason it's not correctly setup by default with Safari on the Mac. But it has a configuration file where you can set the command line parameters that it runs the browser with.
    So when I use Sahi in its default configuration, it doesn't work because the proxy is not configured, and I get an error ( http://sahi.co.in/forums/discussion/4607/sahi-doesn039t-work-with-safari-5-0-1-o n-macosx )
    So I need to set the proxy. When I set the 127.0.0.1:9999 proxy in the System Preferences it works. My question is how do I run Safari so that it provides the proxy settings as a command line option?
    This way I can add the command line option to the Sahi configuration file so that it runs Safari properly. I don't want to have the proxy settings system wide because I need other programs to work. I don't want to have the proxy settings set for Safari permanently because I also need to be able to run Safari normally outside of this special context.
    Any assistance would be appreciated.

    I should mention this is Safari 5.0.1

  • I need to know the command line address for Downloads

    I had a problem with an exe file in Downloads within Firefox and was not able to delete it. I finally got things working OK but would like to know the command line address (under Vista) for Downloads in FireFox.
    I looked in 'Computer' but could not find the Downloads folder anywhere in Mozilla folders. Downloads under my 'user' was empty.
    I resolved the problem, not quite sure what I did, but would still like to know this address for the next time I have to crawl under the hood and use MS DOS commands at a Safe Command Line environment.

    I am not sure what command line you are looking for. Do you want to know where Firefox downloads files? If that is the case, in the Tools menu select Option to open the Options dialog. Select the General panel, you can specify on that part of the options dialog where to download files.
    Providing you have Firefox set up to remember download history (that is the default setting), you can open the download window (in the Tools menu select Download), then right-click on a file in the list and choose "Open Containing Folder" to be taken to where the file was downloaded.

  • Safari's download-location selector too big for screen?

    Any one else got this one?
    When I try to select the "Other" download location in Safari preferences, the resulting pulldown dialog for selecting the location is so huge it spans off the right side and below the bottom of the screen, so I can't drag-resize it, or even click "choose" or "cancel".
    Yes, I can just press Esc, or double click on the folder I want, but still this is a bizarre bug which should be easy to fix.
    Safari 3.1.1

    Does not happen for me in Safari 3.1.1. But, to correct your issue try this: open Safari Preferences > General tab and select download location: Other. With the (too-large) dialog box open, press the option key and select Window menu > Arrange in Front. That should bring the resize handle into view at the bottom right, and you can shrink the dialog box down (and that smaller size should be preserved).
    If that fails, again with the too-large dialog box open, select System Preferences > Displays and set the resolution to something very small (e.g. 640x480), then after the switch, immediately change it back to your native resolution - that should shrink the dialog box back down to a reasonable size.
    Hope this helps...

  • Download oracle s/w from command line

    Hi,
    I want to download oracle s/w is their any way to download frm command line
    my os is Linux .

    Ramkrishna wrote:
    it menas their is no way DOWNLOADING FROM OTN DIRECTLY TO DATABASE SERVER.
    Yes there is. There is NOTHING keeping you from using a web browser on your sever. Firefox is available for *nix.  Download to your server using a browser, exactly like you would on your Windows workstation.
    i tried to wget command but not get resolution.

  • Why can't I access the command line I just downloaded for xcode?

    Why I can't access the command line I just downloaded for xcode?

    Firefox will not appear in the Market for most phones with incompatible hardware. I believe the Motorola Bravo is supported. You can check if your phone is supported here:
    https://wiki.mozilla.org/Mobile/Platforms/Android
    On some supported devices, a bug prevents Firefox from appearing in the Market. This may be related to the recent Market update. You can go to Settings/Applications and uninstall the Market update, then find and install Firefox.
    Or, you can download the app directly from here:
    http://ftp.mozilla.org/pub/mozilla.org/mobile/releases/4.0b3/android-r7/multi/
    (Note: To download the app directly for an AT&T phone, you will have to search for instructions on how to "sideload" the APK file, since AT&T disables the option to install from non-Market sources.)

  • Downloading Java 6 on Linux command line with wget

    Hello,
    I'm trying to download Java 6 on the Linux command line, because my GUI interface is not working.
    So I'm using the Linux wget command for this.
    I tried the following
    wget -r -O jdk.bin http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u4-linux-i586.bin?BundledLineItemUUID=_09IBe.lhyoAAAEYq_YMXRqM&OrderID=gRNIBe.l1jQAAAEYoPYMXRqM&ProductID=48tIBe.phvMAAAEWdt1NOLEE&FileName=/jdk-6u4-linux-i586.binWhen I try the above wget command, I get only html files, javascript file, but I don't get the actual .bin download file.
    I got the above download URL from here:
    https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewFilteredProducts-SingleVariationTypeFilter;pgid=m5sy.hOjk2-x8Y;sid=UKAQRO-lOXkQRagRtUZYQQANrvJ_UCLgBULfhfK7tUrq7g==
    I can't get the file through FTP because and FTP download option is not available.
    Any help is appreciated.

    I transferred it over. First i downloaded it on windows and then installed winscp on windows and proftpd on ubuntu and then transferred it from windows to linux.
    I think it would be impossible for anyone using a console browser such as Lynx to download the file, because, html buttons are involved. If it was all just links then it would have been possible.
    But thanks for your reply.
    I wish the make the Java download Lynx (text browser) friendly.

  • Walldo - A command line wallpaper downloader

    Hello, I have been using arch for more than 4 years but this is my first post in this forum.
    The reason of the post is that I use to change the wallpaper of my ratpoison + nitrogen combo very often and I decided to write a python application to retrieve wallpapers from interfacelift.com.
    The name of this application is walldo, this is the url and you can see an screenshot in the repository.
    https://github.com/skibyte/walldo
    I would appreciate any feedback or recommendations.
    Thanks.

    Refer this : https://social.technet.microsoft.com/Forums/en-US/72a9b4bf-071b-47cd-877d-0c0629a9eb90/how-change-the-wallpaperbackground-with-a-command-line-?forum=w7itproui
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • GUI Applications unable to use command line tools

    Hi All-
    I've searched, but I can't find a thread about this one, so...
    On OS 10.4.5:
    Whenever I use a GUI app that wants to use a command line tool (e.g. curl, df, java), the app fails giving an error message to the effect of "unable to find curl" or the like. It is as if the GUI cannot find my unix $PATH.
    Examples:
    -- Eclipse refuses to launch, because it appears to use "java xxxxxxx" to launch.
    -- Automator fails to run certain Safari actions because they use curl to navigate web pages.
    -- Carbon Copy Cloner fails to launch, because it can't find a tool (df, IIRC) to read drive/volume info
    Possibly relevant details:
    -- I can use the tool in question from the command line, so they are present, and in my $PATH, but the GUI can't find them.
    -- I recently moved from an old G4 to a relatively new G5, and had issues migrating files, so I eventually just copied my entire home directory from the old machine to the new, replacing the freshly created one on the new machine. I feel like that missed something that tells the GUI where your $PATH is, or some other link between GUI and command line.
    -- I created a new user, and that user does not experience the same troubles. This adds to my suspicion that it is account/PATH related.
    Any help anyone can give it greatly appreciated.
    -p
    PM G5 dual 2.0   Mac OS X (10.4.5)  

    Did you by any chance create an evironment.plist file? It is located in ~/.MacOSX/ If you don't know about it or don't know to look (.MacOSX is normally invisible), try this:
    In Finder.app, in the "Go" menu select "Go to Folder..." (shift-command-G), type ~/MacOSX in the text field and hit OK, the finder should then open a window or complain.
    If it opens a window and you find in it a file named environment.plist move that file to the desktop and try your applications. Do they work as advertized? Try again after logging in/out if things don't work. Do they work now?
    Whatever hapens, tell us more...

Maybe you are looking for