I have an applescript that I can't get to work. I am openening a file with a name of "TestScript", then adding text to it. That part works fine, but then I try to have script editor save it, and it saves as untitled.
Any ideas?
Here is the script
set fileLocation to choose folder
set x to "testText"
tell application "Script Editor"
set newDoc to make new document with properties {name:"TestScript"}
set text of newDoc to x
compile newDoc
save newDoc in fileLocation
Any ideas?
Here is the script
set fileLocation to choose folder
set x to "testText"
tell application "Script Editor"
set newDoc to make new document with properties {name:"TestScript"}
set text of newDoc to x
compile newDoc
save newDoc in fileLocation