Scripting Additions Guide
Table Of Contents
CHAPTER 2
Scripting Addition Commands
Command Definitions 45
tell application "Scriptable Text Editor"
activate
tell application "HyperCard" to activate
set x to path to frontmost application
end tell
return x
--result: alias "Hard Disk:Applications:HyperCard"
NOTES
The optional as parameter is useful if you send the Path To command to an
application on a remote computer. If the pathname is returned as a string, you
can use the form file nameString to identify the folder or application across
the network, and Path To won’t actually attempt to locate it until you run the
script. If the pathname is returned as an alias and you use it to refer to the
folder or application elsewhere in the script, Path To also attempts to locate
the file whenever you modify the script and then attempt to check its syntax
or save it, requiring appropriate access privileges and possibly a password
each time.
ERRORS
Error
number Error message
–50 Parameter error.
–108 Out of memory.
–1700 Can't make some data into the expected type.
–1701 Some parameter is missing for <commandName>.
–1704 Some parameter was invalid.
–1705 Operation involving a list item failed.
–1708 <reference> doesn't understand the <commandName> message.
–1718 Reply has not yet arrived.