Hi guys,
I have a NAS and I created an app with AppleScriptEditor that automatically mounts my folders on login/startup.
Now I want to run that app when my computer wakes from sleep.
I followed this guide here:
https://www.bluepiccadilly.com/2012...rive-when-your-computer-starts-or-wakes-sleep
Steps 1 and 2 are fine, they work.
But at Step 3.4 I'm stuck. I cannot get the shell script converted to executable. Nothing happens when I follow the commands in terminal - the .sh file just stays like it was before...at least I think so.
When I go to Finder and open the shell script from step 3 with Terminal, the following happens:
Last login: Sat Sep 29 16:29:42 on ttys001
Johannes-Air:~ joptimus_mac$ /Users/joptimus_mac/Documents/Skripte/ConnectOnWake.sh ; exit;
/Users/joptimus_mac/Documents/Skripte/ConnectOnWake.sh: line 2: /bin/sh&: No such file or directory
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Prozess beendet]
What does it mean "no such file or directory"? Is the guide wrong?
Thanks for your help!
I have a NAS and I created an app with AppleScriptEditor that automatically mounts my folders on login/startup.
Now I want to run that app when my computer wakes from sleep.
I followed this guide here:
https://www.bluepiccadilly.com/2012...rive-when-your-computer-starts-or-wakes-sleep
Steps 1 and 2 are fine, they work.
But at Step 3.4 I'm stuck. I cannot get the shell script converted to executable. Nothing happens when I follow the commands in terminal - the .sh file just stays like it was before...at least I think so.
When I go to Finder and open the shell script from step 3 with Terminal, the following happens:
Last login: Sat Sep 29 16:29:42 on ttys001
Johannes-Air:~ joptimus_mac$ /Users/joptimus_mac/Documents/Skripte/ConnectOnWake.sh ; exit;
/Users/joptimus_mac/Documents/Skripte/ConnectOnWake.sh: line 2: /bin/sh&: No such file or directory
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Prozess beendet]
What does it mean "no such file or directory"? Is the guide wrong?
Thanks for your help!