tell application "Finder"
set myFolder to container of (path to me) as string
end tell
tell application "Terminal"
activate
do script (POSIX path of myFolder) & "sage"
end tell
If on the other hand you want to start the notebook and don't need the
terminal window in front, you can use the following AppleScript to
open a terminal window in the background and start Sage in notebook
mode:
tell application "Finder"
set myFolder to container of (path to me) as string
end tell
tell application "Terminal"
do script (POSIX path of myFolder) & "sage --notebook"
end tell
What else did you folks have in mind in terms of Mac OS X integration?
-- Greg
--
Gregory D. Landweber
Assistant Professor of Mathematics
Bard College