Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kimaldis

macrumors newbie
Original poster
Sep 28, 2016
2
0
If I add use framework "Foundation" to an applescript, do shell script no longer works. I get an error "Syntax Error, Expected end of line, etc. but found identifier." with 'shell' highlighted in the script. If I remove the 'use framework' line or the 'use framework' line, the script works again.

Any thoughts?

use framework "Foundation"
do shell script "basename a/b/c/d/file.ext" -- fails, syntax error.


thanks.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.