ScummVM logo Forum Index - ScummVM website - Contact us - Buy Supported Games: GOG.com Rules - Search - Register - Login curved edge
Folder Forum Index > Help and Support > OSX Desktop Icons And Shortcuts? Goto page 1, 2  Next
OSX Desktop Icons And Shortcuts?
  Author    Thread Reply to topic
thill2708



Joined: 03 Jan 2008
Posts: 1
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?

 Reply with quote  
Post Thu Jan 03, 2008 2:31 am 
 View user's profile Send private message
clone2727
Retired


Joined: 09 Jun 2006
Posts: 1592
Location: NJ, USA
 

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 Smile

 Reply with quote  
Post Thu Jan 03, 2008 2:35 am 
 View user's profile Send private message
criezy
ScummVM Developer


Joined: 23 Sep 2006
Posts: 425
Location: West Sussex, UK
 

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:

code:
#!/bin/sh
/Applications/ScummVM/ScummVM.app/Contents/MacOS/scummvm monkey1



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.

Last edited by criezy on Fri Jan 04, 2008 8:52 am; edited 1 time in total
 Reply with quote  
Post Fri Jan 04, 2008 1:48 am 
 View user's profile Send private message
clone2727
Retired


Joined: 09 Jun 2006
Posts: 1592
Location: NJ, USA
 

Ah, he wanted an icon for the shell script. Oops Razz

Thanks criezy.

 Reply with quote  
Post Fri Jan 04, 2008 1:51 am 
 View user's profile Send private message
einar



Joined: 25 Jul 2008
Posts: 2
 

The "Open With" part is not required if you give the file a name ending with .command, i.e. "Monkey Island.command".

 Reply with quote  
Post Fri Jul 25, 2008 1:21 pm 
 View user's profile Send private message
bobablob



Joined: 25 May 2006
Posts: 102
 

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.

 Reply with quote  
Post Fri Jul 25, 2008 4:32 pm 
 View user's profile Send private message AIM Address
dr.zeissler



Joined: 01 Jan 2007
Posts: 18
 

quote:
Originally posted by bobablob
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.


sorry, i don't understand this. can you explain it ?

i want to create a *.app wich includes all:
- scummvm
- the game
- the hiresicon

What has do be done to do that.

Thx
Doc
 Reply with quote  
Post Wed Oct 22, 2008 9:00 pm 
 View user's profile Send private message
Longcat



Joined: 23 Sep 2006
Posts: 943
 

learning how to program?

why can't you just create a shortcut?

 Reply with quote  
Post Wed Oct 22, 2008 9:14 pm 
 View user's profile Send private message
dr.zeissler



Joined: 01 Jan 2007
Posts: 18
 

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

 Reply with quote  
Post Wed Oct 22, 2008 9:22 pm 
 View user's profile Send private message
Longcat



Joined: 23 Sep 2006
Posts: 943
 

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.

 Reply with quote  
Post Wed Oct 22, 2008 9:58 pm 
 View user's profile Send private message
dr.zeissler



Joined: 01 Jan 2007
Posts: 18
 

quote:
Originally posted by Jonatan

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.


Thank You Jonatan,

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
 Reply with quote  
Post Thu Oct 23, 2008 5:56 am 
 View user's profile Send private message
Longcat



Joined: 23 Sep 2006
Posts: 943
 

yes, well, I still don't see what your problem is...

just start Script Editor, put in the line like it says with the game shortname for whatever you want ScummVM to start and save it as an application bundle.

 Reply with quote  
Post Thu Oct 23, 2008 12:56 pm 
 View user's profile Send private message
clem



Joined: 31 Oct 2005
Posts: 2185
 

I think he wants a frontend/tool which creates these shortcuts automatically from the games stored in the ScummVM config file.

 Reply with quote  
Post Thu Oct 23, 2008 1:14 pm 
 View user's profile Send private message
Longcat



Joined: 23 Sep 2006
Posts: 943
 

well, I don't know of any such tool.

 Reply with quote  
Post Thu Oct 23, 2008 1:41 pm 
 View user's profile Send private message
dr.zeissler



Joined: 01 Jan 2007
Posts: 18
 

Deleted for violating the forum rules

 Reply with quote  
Post Thu Oct 23, 2008 8:05 pm 
 View user's profile Send private message
  Display posts from previous:      
Reply to topic

Forum Jump:
 
Goto page 1, 2  Next


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Powered by phpBB © 2001, 2006 phpBB Group
Forum design by ScummVM team, icons by raina
curved edge   curved edge