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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -