ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 18 Nov 2011 06:30:37 +0100how can I put the non-app version of sage on the dock?https://ask.sagemath.org/question/8483/how-can-i-put-the-non-app-version-of-sage-on-the-dock/
Hi,
I've just installed sage 4.7.2 on a laptop running snow leopard. I put the sage folder inside Applications folder, and inside sage I see the executable icon for sage. When I double click on it everything works fine, but when I wanted to put the executable sage on the dock I could not do it. I guess one can only put .app files on there. I'd would like to have sage there so I don't have to go Applications->sage->sage every single time I want to use it.
Thanks, Wed, 16 Nov 2011 20:00:10 +0100https://ask.sagemath.org/question/8483/how-can-i-put-the-non-app-version-of-sage-on-the-dock/Answer by Ivan Andrus for <p>Hi,</p>
<p>I've just installed sage 4.7.2 on a laptop running snow leopard. I put the sage folder inside Applications folder, and inside sage I see the executable icon for sage. When I double click on it everything works fine, but when I wanted to put the executable sage on the dock I could not do it. I guess one can only put .app files on there. I'd would like to have sage there so I don't have to go Applications->sage->sage every single time I want to use it.</p>
<p>Thanks, </p>
https://ask.sagemath.org/question/8483/how-can-i-put-the-non-app-version-of-sage-on-the-dock/?answer=12912#post-id-12912You could put it in the file section of the dock and it should work. If you want to add it to the application section then I think you have to create a little automator application or similar.
I'm curious though why you want to do this. Is it so that clicking on the dock icon will launch another terminal session? I have thought of adding this feature to the application but haven't done so yet.Thu, 17 Nov 2011 11:08:59 +0100https://ask.sagemath.org/question/8483/how-can-i-put-the-non-app-version-of-sage-on-the-dock/?answer=12912#post-id-12912Comment by Ivan Andrus for <p>You could put it in the file section of the dock and it should work. If you want to add it to the application section then I think you have to create a little automator application or similar.</p>
<p>I'm curious though why you want to do this. Is it so that clicking on the dock icon will launch another terminal session? I have thought of adding this feature to the application but haven't done so yet.</p>
https://ask.sagemath.org/question/8483/how-can-i-put-the-non-app-version-of-sage-on-the-dock/?comment=20868#post-id-20868There are 2 easy ways I think. The first is to add "Get Specified Finder Items" and point it at the sage executable. Then add "Open Finder Items". This will do the same as double clicking in the Finder (except it takes a little longer because it has to start up the automator engine). The other way is to use an applescript such as those that come with the Mac application. This allows more control (such as passing `--gap` to run GAP or something), but is also a little more work unless you just cut and paste from the Mac application. Both will be a little slower (than just the executable in the file side), but allow you to change the icon etc. Actually never mind, you can change the icon of the sage executable as well.Fri, 18 Nov 2011 06:30:37 +0100https://ask.sagemath.org/question/8483/how-can-i-put-the-non-app-version-of-sage-on-the-dock/?comment=20868#post-id-20868Comment by Dima for <p>You could put it in the file section of the dock and it should work. If you want to add it to the application section then I think you have to create a little automator application or similar.</p>
<p>I'm curious though why you want to do this. Is it so that clicking on the dock icon will launch another terminal session? I have thought of adding this feature to the application but haven't done so yet.</p>
https://ask.sagemath.org/question/8483/how-can-i-put-the-non-app-version-of-sage-on-the-dock/?comment=20869#post-id-20869I don't think it's easy to use Automator for this task. I spent half an hour trying, and I gave up. Automator simply is not designed for these tasks, it seems. More precisely, I mean "creating an automation that opens up a terminal, and starts Sage there". Fri, 18 Nov 2011 01:48:05 +0100https://ask.sagemath.org/question/8483/how-can-i-put-the-non-app-version-of-sage-on-the-dock/?comment=20869#post-id-20869Comment by NaiveUser for <p>You could put it in the file section of the dock and it should work. If you want to add it to the application section then I think you have to create a little automator application or similar.</p>
<p>I'm curious though why you want to do this. Is it so that clicking on the dock icon will launch another terminal session? I have thought of adding this feature to the application but haven't done so yet.</p>
https://ask.sagemath.org/question/8483/how-can-i-put-the-non-app-version-of-sage-on-the-dock/?comment=20878#post-id-20878I don't really know how to create the automator application so I'll have to stick to put it on the file section. Yes, what I wanted is precisely launch sage-terminal session by just a click on the dock. Thanks.Thu, 17 Nov 2011 14:32:51 +0100https://ask.sagemath.org/question/8483/how-can-i-put-the-non-app-version-of-sage-on-the-dock/?comment=20878#post-id-20878