• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
MacScript from Excel 2016 fails to source bash_profile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Requesting advice with Adobe Acrobat DC 2015, please.
  • Next by Date: Using frameworks explicitly (was Re: AppleScriptObjC oddity solved - kinda)
  • Previous by thread: Re: Requesting advice with Adobe Acrobat DC 2015, please.
  • Next by thread: Using frameworks explicitly (was Re: AppleScriptObjC oddity solved - kinda)
  • Index(es):
    • Date
    • Thread