Please visit the new Mac-Forums Facebook page:
Join Us @ Mac-Forums Facebook Page



Results 1 to 7 of 7
  1. #1
    Can'T Execute Terminal Scripts by Double-Click (Mouse/Trackpad)
    (the title is self explanatory - found nothing that solved this - I'm not a newb so the "regular" solutions don't work that's why a new thread)


    PS - ...Terminal app DOES INDEED execute (Slthough without opening any window) when double-clicking an already executable shortcut (or thescript itself - so it i not a problem with shortcuts) - but the "script" itself doesn't and since it is already configured to be executable doesn't even show it's path when terminal window opens as it would in other situations!

    PS2 - (of course) when exectuing normaly (prompt$ ./executable_script ) it works as always did - it only a double-click with trackpad/mouse problem


    .......Double clicking on the dock shortcut for these scripts I've made WAS INDEED Always OK and working perfecly
    .....I use them so often that I will consider formatting the system if I can't make them work since it's really not praticle (fast) to exectute them "normaly" in terminal without being able to double-click!
    Last edited by migadrenaline; 03-19-2017 at 06:33 PM.

  2. #2
    Can'T Execute Terminal Scripts by Double-Click (Mouse/Trackpad)
    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    12,151
    Rep Power
    24
    I'm on macOS Sierra 10.12.3

    My script
    Code:
    #!/usr/bin/env bash
    
    
    echo "Hello there!"
    The following pictures how my settings in Get Info, permissions of the file in the terminal and the output of me double-clicking on it in Finder.
    Attached Images Attached Images
    --
    Regards
    ...Ashwin


  3. #3
    no... exactly as you - not working though..

    also tried (never needed it before, but to be sure) to use file extentions *.sh and also *.command and just to be sure it wouldn't be permission prolems to chmod to 777 (-rwxrwxrwx) as well


    PS - Even scripts without extended atributtes happens the same so it's not those as well if you may thought it could be it)
    Last edited by migadrenaline; 03-20-2017 at 12:30 PM.

  4. #4
    Can'T Execute Terminal Scripts by Double-Click (Mouse/Trackpad)
    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    12,151
    Rep Power
    24
    What does happen when you double-click on the scripts?
    --
    Regards
    ...Ashwin


  5. #5
    ----if Terminal Application was close it does indeed start Terminal BUT no windows even opens!

    ..... if Terminal Application is already running it makes an open Terminal window be the active foregroung window and nothing else happens (not even the path shows at the prompt as it usually does)





    (did this help? - I just now remembered to check out the console maybe something shoes up... (duh.. didn't remember...)... if it didn't help out I'll check it and post as soon as I may)

  6. #6
    Can'T Execute Terminal Scripts by Double-Click (Mouse/Trackpad)

    Member Since
    Dec 11, 2010
    Location
    Chicago
    Posts
    1,804
    Your Mac's Specs
    late 2012 mini w/SSD
    Rep Power
    10
    Quote Originally Posted by migadrenaline View Post
    ...Terminal app DOES INDEED execute (Slthough without opening any window) when double-clicking an already executable shortcut (or thescript itself - so it i not a problem with shortcuts) - but the "script" itself doesn't
    The "already executable shortcut" is what interests me. Is it possible you forgot how you made that? I think it's likely an automator applet.
    https://arstechnica.com/apple/2011/0...ell-scripting/
    https://developer.apple.com/library/...ptActions.html

  7. #7
    Can'T Execute Terminal Scripts by Double-Click (Mouse/Trackpad)

    Member Since
    Dec 11, 2010
    Location
    Chicago
    Posts
    1,804
    Your Mac's Specs
    late 2012 mini w/SSD
    Rep Power
    10
    Or, try this:
    add .command in place of .sh in the file name.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Double click on trackpad not working
    By taega in forum macOS - Operating System
    Replies: 3
    Last Post: 07-15-2012, 08:52 AM
  2. My multitouch trackpad won't double click?
    By amanda.a.p in forum Apple Notebooks
    Replies: 1
    Last Post: 04-10-2011, 10:23 PM
  3. Replies: 1
    Last Post: 09-23-2009, 07:07 PM
  4. how can i double click/hit trackpad to perform [open] on XP
    By winjerrywin in forum Running Windows (or anything else) on your Mac
    Replies: 0
    Last Post: 11-24-2007, 07:25 AM
  5. can i double click with the trackpad?
    By Jux06 in forum Switcher Hangout
    Replies: 1
    Last Post: 07-05-2006, 08:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •