applescript - How do I get properties from text document -
i want make applescript gets text text-document this:
property foobar : [insert string text document] tell application "terminal" set currenttab script "echo" & foobar end tell
how do this?
although don't quite understand you're trying do, think you're attempting use contents of text document set title of terminal tab. if that's case, so, don't need call shell script.
property foo : missing value set fileref open access (alias "aslan:users:chuck:desktop:file.txt") set foo read fileref close access fileref tell application "terminal" set custom title of selected tab of window 1 foo
note if that's want do, property line isn't needed.
Comments
Post a Comment