MacScript from Excel 2016 fails to source bash_profile
MacScript from Excel 2016 fails to source bash_profile
- Subject: MacScript from Excel 2016 fails to source bash_profile
- From: Felix Zumstein <email@hidden>
- Date: Sat, 11 Jul 2015 15:35:56 +0200
Hi all,
In Excel 2011 I can do:
Sub Test()
MacScript ("do shell script ""source ~/.bash_profile;open /Applications/Calculator.app"" ")
End Sub
and the Calculator app opens as expected.
However, this fails in Excel 2016 with Run-time error '5': Invalid procedure call or argument. However, this works:
Sub Test()
MacScript ("do shell script ""open /Applications/Calculator.app"" ")
End Sub
Does anybody know how I can source .bash_profile with Excel 2016?
thanks
Felix
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden