Open another image with Pharo 1.1.1 one-click on Mac OS

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Open another image with Pharo 1.1.1 one-click on Mac OS

Dennis Schetinin
Is it possible to setup a one-click Pharo.app to ask which image to open at startup?  It saves images inside Pharo.app package which is great, but how to open them?

TIA

--
Dennis Schetinin
Reply | Threaded
Open this post in threaded view
|

Re: Open another image with Pharo 1.1.1 one-click on Mac OS

Schwab,Wilhelm K
On Linux, I simply edit the shell script to use the image of interest.  I don't know enough about macs to figure out whether "launch xyz.app" is using the shell script or doing something completely different.  Anybody?




________________________________________
From: [hidden email] [[hidden email]] On Behalf Of Dennis Schetinin [[hidden email]]
Sent: Wednesday, February 16, 2011 10:39 AM
To: Pharo-project
Subject: [Pharo-project] Open another image with Pharo 1.1.1 one-click on       Mac OS

Is it possible to setup a one-click Pharo.app to ask which image to open at startup?  It saves images inside Pharo.app package which is great, but how to open them?

TIA

--
Dennis Schetinin

Reply | Threaded
Open this post in threaded view
|

Re: Open another image with Pharo 1.1.1 one-click on Mac OS

Dennis Schetinin
I found an association

    <key>SqueakImageName</key>
    <string>Pharo.image</string>

in Info.plist file inside Pharo.app bundle and replaced it with

    <key>SqueakImagePath</key>
    <string>/Applications/Pharo.app/Contents/Resources</string>

(See http://www.smalltalkconsulting.com/html/squeakinfoplist.html for a list of available options)

Now Pharo asks for image file but still using ~/Documents in the Open File dialog. I don't know if it is possible to open an image from inside the Pharo.app.

2011/2/16 Schwab,Wilhelm K <[hidden email]>
On Linux, I simply edit the shell script to use the image of interest.  I don't know enough about macs to figure out whether "launch xyz.app" is using the shell script or doing something completely different.  Anybody?




________________________________________
From: [hidden email] [[hidden email]] On Behalf Of Dennis Schetinin [[hidden email]]
Sent: Wednesday, February 16, 2011 10:39 AM
To: Pharo-project
Subject: [Pharo-project] Open another image with Pharo 1.1.1 one-click on       Mac OS

Is it possible to setup a one-click Pharo.app to ask which image to open at startup?  It saves images inside Pharo.app package which is great, but how to open them?

TIA

--
Dennis Schetinin




--
Dennis Schetinin
Reply | Threaded
Open this post in threaded view
|

Re: Open another image with Pharo 1.1.1 one-click on Mac OS

Sven Van Caekenberghe
In reply to this post by Dennis Schetinin

On 16 Feb 2011, at 16:39, Dennis Schetinin wrote:

> Is it possible to setup a one-click Pharo.app to ask which image to open at startup?  It saves images inside Pharo.app package which is great, but how to open them?
>
> TIA
>
> --
> Dennis Schetinin

Dennis,

Select the Pharo.app icon in the Finder, right-click to open the menu, select 'Show Package Contents', in there you will find the image and changes files and much more.

Sven
Reply | Threaded
Open this post in threaded view
|

Re: Open another image with Pharo 1.1.1 one-click on Mac OS

Sven Van Caekenberghe
In reply to this post by Dennis Schetinin

On 16 Feb 2011, at 19:34, Dennis Schetinin wrote:

> I found an association
>
>     <key>SqueakImageName</key>
>     <string>Pharo.image</string>
>
> in Info.plist file inside Pharo.app bundle and replaced it with
>
>     <key>SqueakImagePath</key>
>     <string>/Applications/Pharo.app/Contents/Resources</string>
>
> (See http://www.smalltalkconsulting.com/html/squeakinfoplist.html for a list of available options)
>
> Now Pharo asks for image file but still using ~/Documents in the Open File dialog. I don't know if it is possible to open an image from inside the Pharo.app.

The one-click image is more for (absolute) beginners and casual users. Once you really get started with Smalltalk, you should learn and become comfortable with the four key elements needed:

        image file
        changes file
        vm
        sources file

Most users will have many images/changes files and multiple VMs, so you most often will have to make a choice, right-clicking on an image file and doing an Open with.. using the right VM is what I do.

Sven