Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: AppleScript and StataSE


From   David Airey <[email protected]>
To   [email protected]
Subject   st: AppleScript and StataSE
Date   Wed, 26 Mar 2003 13:31:28 -0600

Running the following Applescript from the Script Editor
--
tell application "StataSE"
activate
open file "myfile.do"
end tell
--
where myfile.do is in the active directory of Stata (Stata Data in this case) gives the error message:

"StataSE got an error: File some object wasn't found"

Running the following Applescript from the Script Editor
--
tell application "StataSE"
activate
open "myfile.do"
end tell
--

gives the error message:

"StataSE got an error: Can't make some data into the expected type"

Any thoughts on these errors? The FAQ on text editors suggests this or some variant (not the one posted) should work.

-Dave

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index