OSX Desktop Icons And Shortcuts?
Moderator: ScummVM Team
OSX Desktop Icons And Shortcuts?
Hey, I'm trying to create a shortcut to specific games (like I have on my linux laptop), which use the high resolution icons. For the life of me I can't figure out how to do this, and can't find it online. On linux, I just have a desktop launcher that runs ~/games/scummvm monkey1, and I have the icon set accordingly. Can you do this on OSX?
If you compile it, you can make an .icns file (which comes with the XCode tools). But, to come up with an icon that you can just see, here's a trick I usually do (not too sure if it's 100% perfect or proper, but it works):
Show the info of the icon you want to use, and also of ScummVM. Then, click on the icon that you want to use and press cmd+c. Finally, click on the ScummVM icon and press cmd+v.
I think this really is only temporary, and doesn't transfer to other systems when you copy it. Well, just my two (Lincoln) cents anyway
Show the info of the icon you want to use, and also of ScummVM. Then, click on the icon that you want to use and press cmd+c. Finally, click on the ScummVM icon and press cmd+v.
I think this really is only temporary, and doesn't transfer to other systems when you copy it. Well, just my two (Lincoln) cents anyway
What you sugest is to change the application icon. I don't think this is what thill2708 wants. From what I understand he wants a shortcut to the ScummVM application that takes a command line argument to start a given game and he wants to set the icon of this shortcut. I don't think you can do that this way on a Mac (that's a shame as you can do it on Linux and Windows and it is imho a nice feature).
thill2708, here is the solution I propose:
1) Create a text file containing the following text:
This is a shell script. You might need to change the path to the ScummVM application depending where you have install it.
2) You need to tell the OS to open this file with the Terminal application (show the info of the file and in the Open with section select Terminal.app) and you can change the icon at the same occasion using the way described by clone.
The drawback of this method is that it will open a Terminal window when you start the game. If you want the window to be closed when you quit the game you will need to change the default window settings for the Terminal application (and this is more complicated than it should be).
Edit: and don't forget to change the permission of the shell script so that it can be executed.
thill2708, here is the solution I propose:
1) Create a text file containing the following text:
Code: Select all
#!/bin/sh
/Applications/ScummVM/ScummVM.app/Contents/MacOS/scummvm monkey1
2) You need to tell the OS to open this file with the Terminal application (show the info of the file and in the Open with section select Terminal.app) and you can change the icon at the same occasion using the way described by clone.
The drawback of this method is that it will open a Terminal window when you start the game. If you want the window to be closed when you quit the game you will need to change the default window settings for the Terminal application (and this is more complicated than it should be).
Edit: and don't forget to change the permission of the shell script so that it can be executed.
Last edited by criezy on Fri Jan 04, 2008 8:52 am, edited 1 time in total.
The most seamless way to do this is with an Applescript. That way you don't need Terminal to launch every time you click on the icon.
Open Script Editor
Type the following:
do shell script "[path]/ScummVM.app/Contents/MacOS/scummvm monkey"
Save As [Name]. Change File Format to Application Bundle and Check Run Only.
If you want to use a High-Res Icon, just open up the bundle in Finder and replace the default icon with the one you want to use.
Open Script Editor
Type the following:
do shell script "[path]/ScummVM.app/Contents/MacOS/scummvm monkey"
Save As [Name]. Change File Format to Application Bundle and Check Run Only.
If you want to use a High-Res Icon, just open up the bundle in Finder and replace the default icon with the one you want to use.
-
- Posts: 28
- Joined: Mon Jan 01, 2007 5:53 pm
sorry, i don't understand this. can you explain it ?bobablob wrote:The most seamless way to do this is with an Applescript. That way you don't need Terminal to launch every time you click on the icon.
Open Script Editor
Type the following:
do shell script "[path]/ScummVM.app/Contents/MacOS/scummvm monkey"
Save As [Name]. Change File Format to Application Bundle and Check Run Only.
If you want to use a High-Res Icon, just open up the bundle in Finder and replace the default icon with the one you want to use.
i want to create a *.app wich includes all:
- scummvm
- the game
- the hiresicon
What has do be done to do that.
Thx
Doc
-
- Posts: 28
- Joined: Mon Jan 01, 2007 5:53 pm
a shortcut of what ?...scummvm ?
all games scumm can run have no binary and so it is nonsense to make a shortcut of folders or whatever. sure i can make a shortcut of "scummvm" but whatfor ?
i can always use scummvm and choose the game out of the added list, but i want to have only one icon per each game and start it directly by doublecklick without starting scumm and choosing out of the list.
Doc
all games scumm can run have no binary and so it is nonsense to make a shortcut of folders or whatever. sure i can make a shortcut of "scummvm" but whatfor ?
i can always use scummvm and choose the game out of the added list, but i want to have only one icon per each game and start it directly by doublecklick without starting scumm and choosing out of the list.
Doc
if you add the games shortname (monkey island = monkey, Goblins 1 = gob1, etc.) like it say's in the above post, ScummVM will execute the game itself IF you have already added the game in.
therefore, no, you do not need to execute anything other then ScummVM itself. it knows where to find the games folder.
sorry, but you will have will have to be a bit more spesific about exactly what you need explained, because it's all up there.
therefore, no, you do not need to execute anything other then ScummVM itself. it knows where to find the games folder.
sorry, but you will have will have to be a bit more spesific about exactly what you need explained, because it's all up there.
-
- Posts: 28
- Joined: Mon Jan 01, 2007 5:53 pm
Thank You Jonatan,Jonatan wrote: if you add the games shortname (monkey island = monkey, Goblins 1 = gob1, etc.) like it say's in the above post, ScummVM will execute the game itself IF you have already added the game in.
therefore, no, you do not need to execute anything other then ScummVM itself. it knows where to find the games folder.
sorry, but you will have will have to be a bit more spesific about exactly what you need explained, because it's all up there.
first of all I use a mac with os 10.5.5.
It is difficult to explain what I want, so I show you what I did with games running in DosBox.
Normally you start "dosbox", mount a folder for "C:" and start the game by typing it's binary. You can use a frontend where all your games are already listed und start them with doubleclick.
I use the tool "boxer" and if you read, what this does, you will know, what I want to do with games that use scummvm.
http://boxer.washboardabs.net/
(boxer packages!)
Thx
Doc