On Apr 30, 6:57 am, "Greg Landweber" <[EMAIL PROTECTED]> wrote:

Hi Greg,

> You don't need any fancy droplets or applets. You can just use the
> following AppleScript to activate Sage (take this script and save it
> as an AppleScript application, then put it in the same directory as
> the "sage" UNIX executable):
>
> 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

Thanks for your suggestions and code snippets. I absolutely prefer
your simple and elegant solution and have added your code to

http://trac.sagemath.org/sage_trac/ticket/1731

> What else did you folks have in mind in terms of Mac OS X integration?

Not sure. Maybe an association of .sage files with Sage would be nice
- but I am not quite sure how that would work with the Notebook.
Anybody else wants to weigh in or come up with a wishlist?

> -- Greg
>

Cheers,

Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to