I have two commands that I need to run through the Terminal. They are
cd /Users/[my name]/Desktop and
When running these directly in Terminal they work just fine. However, when running this in AppleScript:
do shell script "cd /Users/Peter1/Desktop" do shell script "curl 'www.google.com'>google.txt"
It produced the error:
sh: google.txt: Permission denied
Why is this happening? What can I do to fix it?