From | David Airey <[email protected]> |
To | [email protected] |
Subject | Re: st: AppleScript and StataSE |
Date | Wed, 26 Mar 2003 19:44:39 -0600 |
Chinh Nguyen kindly answered:
Your path is wrong. A true HFS path precedes a filename with a : to specifyThis is confusing. Apple help says:
the current working directory. You should've entered:
tell application "StataSE"
activate
open file ":myfile.do"
end tell
To specify an absolute path, enter:
tell application "StataSE"
activate
open file "Macintosh HD:Users:someuser:Desktop:myfile.do"
end tell
Stata's HFS paths follow the POSIX model in that absolute paths start with a
path delimiter (in this case, a colon) and relative paths do not. Macintosh
HFS paths are the opposite.
In the Mac section of the FAQ on text editors by many authors and quoted in the thread you mention.
> Any thoughts on these errors? The FAQ on text editors suggests this or
> some variant (not the one posted) should work.
I didn't see where this was suggested but it does work.
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |