sharedFile

61 views
Skip to first unread message

Haroldo Mauro

unread,
Jun 21, 2018, 1:02:27 PM6/21/18
to superca...@googlegroups.com
Hi, I'm trying to get resources into a project. The User Guide says "To do so, just open the SharedFile using SuperCard’s Resource Manager and copy the resources into it. Followed these instructions but was unable to find the sharedFile.  (Supercard 8)
TIA
Harold

Scott

unread,
Jun 21, 2018, 4:42:54 PM6/21/18
to SuperCard Discussion
You'll find the SharedFile at:

/Library/Application Support/SuperCard 4.8.0/SC Pouch/SharedFile


Its path is also returned when asking for "the SharedFile" in SuperTalk.

Haroldo Mauro

unread,
Jun 21, 2018, 10:11:18 PM6/21/18
to superca...@googlegroups.com
Thank you.


-- 
You received this message because you are subscribed to the Google Groups "SuperCard Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supercard-tal...@googlegroups.com.
To post to this group, send email to superca...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/supercard-talk/6bdf7905-2c43-420a-9d57-aad9c4fa12e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Haroldo Mauro

unread,
Jun 22, 2018, 1:03:58 PM6/22/18
to SuperCard Discussion
Thanks, now I'm trying to import PICT resources into it. I've done it before but can not find the way of doing it. I need to display images of country flags in buttons to have them in a Standalone file. The images in the computer are .png and they look grey when I navigate to them in the Resource Manager. Please help.

Scott

unread,
Jun 23, 2018, 11:18:18 AM6/23/18
to superca...@googlegroups.com
If they are PNG files they are not resources. Consider converting them to ICNS (icon) files. Then they can be imported to a dataFork resource in a new project via SuperEdit's "Import icon family" menu item in the File menu, and then copied to other projects (or the SharedFile).

Haroldo Mauro

unread,
Jun 23, 2018, 1:13:06 PM6/23/18
to superca...@googlegroups.com
What I have now (please see attachment), in the resource fork of the project are several PICT resources which were originally  png files from countries flags. Now I want to add a few country flags. Are you saying that the resources I have now are ICNS converted png files?..






On Jun 23, 2018, at 12:18, Scott <scottin...@gmail.com> wrote:

If the are PNG files they are not resources. Consider converting them to ICNS (icon) files. Then they can be imported to a dataFork resource in a new project via SuperEdit's "Import icon family" menu item in the File menu, and then copied to other projects (or the SharedFile).

--
You received this message because you are subscribed to the Google Groups "SuperCard Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supercard-tal...@googlegroups.com.
To post to this group, send email to superca...@googlegroups.com.

Scott

unread,
Jun 23, 2018, 2:04:21 PM6/23/18
to SuperCard Discussion
No, I am suggesting ICNS icon files are a better way to go as there are modern tools available (iconUtil) for creating them from png files.

I don't even think the current version of Graphic Converter saves to PICT resources, and resource editors in general are not intel compatible (at least I have not found one).

Haroldo Mauro

unread,
Jun 23, 2018, 2:31:35 PM6/23/18
to superca...@googlegroups.com
I’m lost. Would you mind tell me how did I get those PICT resources into the resource fork of my project in the first place? Because I can’t remember how I have accomplished that, it has been four years since.
Another thing is, my version of Graphic Converter does not save to icns.

Thank you.




On Jun 23, 2018, at 15:04, Scott <scottin...@gmail.com> wrote:

No, I am suggesting ICNS icon files are a better way to go as there are modern tools available (iconUtil) for creating them from png files.

I don't even think the current version of Graphic Converter saves to PICT resources, and resource editors in general are not intel compatible (at least I have not found one).

--
You received this message because you are subscribed to the Google Groups "SuperCard Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supercard-tal...@googlegroups.com.
To post to this group, send email to superca...@googlegroups.com.

Scott

unread,
Jun 23, 2018, 3:01:19 PM6/23/18
to SuperCard Discussion
How could I possibly know how you created those PICT resources?

As for PNG to ICNS, there are a number of online resources that will do this for you if you Google it.

I use the MacOS command line tool "iconutil"...

iconutil -c icns <pathTo.iconsetFolder>


where <pathTo.iconsetFolder> is a folder with a name ending in '.iconset' (i.e. myIcon.iconset), that contains a number of sizes of PNG files named as:

icon_16x16.png
icon_32x32.png
icon_128x128.png
icon_256x256.png
icon_512x512.png

and so on. For more info enter the following into the Terminal:

man iconutil

Haroldo Mauro

unread,
Jun 23, 2018, 3:23:59 PM6/23/18
to superca...@googlegroups.com
Sorry, I’ll re-phrase the question:

What is the process by which a PICT resource is imported to the resourceFork of a Project? 

I am asking because all the PICT files I try to import through the Resource Manager are greyed out. This is very confusing and I can’t find clear instructions in the User Guide. However I know I’ve done it before as you can see in the attachment I sent earlier. 

Thanks for the command line info

--
You received this message because you are subscribed to the Google Groups "SuperCard Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supercard-tal...@googlegroups.com.
To post to this group, send email to superca...@googlegroups.com.

Scott

unread,
Jun 23, 2018, 3:33:57 PM6/23/18
to SuperCard Discussion
The reason they're greyed out is that pict files are not pict resources.

Haroldo Mauro

unread,
Jun 23, 2018, 3:51:55 PM6/23/18
to superca...@googlegroups.com
Of course, I understand that. It is obvious. Never mind…. I’ll try to figure out myself.


On Jun 23, 2018, at 16:33, Scott <scottin...@gmail.com> wrote:

> The reason they're greyed out is that pict files are not pict resources.
>
> --
> You received this message because you are subscribed to the Google Groups "SuperCard Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to supercard-tal...@googlegroups.com.
> To post to this group, send email to superca...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/supercard-talk/1e8bb518-7b24-47f3-81d5-6992caf148c4%40googlegroups.com.

codegreen

unread,
Jun 23, 2018, 4:10:34 PM6/23/18
to SuperCard Discussion
FWIW there just ain't no such animal. To import images as PICT resources, they must already *be* PICT resources (in a resource file or another SC project).

Lots of graphic editors (especially older ones) can perform this conversion (to a PICT resource) for you - personally I use Photoshop. Once you've converted your PICT files or PNG files (or whatever) to PICT resources you can import them into your SC project using SE or the Resource Manager just like any other resource.

If you have access to a 'real' resource-fork editor you can do the conversion manually (a PICT file contains the same data as a PICT resource plus a 512-byte header that you can just fill with NULL bytes, and it lives in the file's data fork instead of its resource fork).

How you did this conversion last time is anyone's guess, but it didn't involve SuperCard...

-Mark

Haroldo Mauro

unread,
Jun 23, 2018, 4:18:46 PM6/23/18
to superca...@googlegroups.com
Got it. Thank you. 
Harold



--
You received this message because you are subscribed to the Google Groups "SuperCard Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supercard-tal...@googlegroups.com.
To post to this group, send email to superca...@googlegroups.com.

codegreen

unread,
Jun 23, 2018, 5:04:23 PM6/23/18
to superca...@googlegroups.com
Here's a quickie project I just slapped together that uses pictureData and one of the IT sample project XFcns to convert any importable image format to a PICT resource:



Not a whole lot of fancy scripting here...

on mouseUp

  answer picture "Select an image file:"

  if it = "" then exit script

  lock screen

  set the itemDel to "."

  local rezName = item 1 of pathTools("fileFromPath", it)

  set the pictureData of cd grc 1 to file it

  export the raw pictureData of cd grc 1 into it

  set the pictureData of cd grc 1 to none

  answer startest("add star", "this proj", "PICT", rezName, it)

end mouseUp


If you'd prefer to import directly to the SharedFile instead, there's another IT sample XFcn enclosed which does that too (I'll leave that minor tweak as an exercise for the reader... ;-)

HTH,
-Mark

codegreen

unread,
Jun 23, 2018, 5:06:26 PM6/23/18
to SuperCard Discussion
OK, lets try that attachment again...



PICT Rezzer.sc45.zip

codegreen

unread,
Jun 23, 2018, 5:44:30 PM6/23/18
to SuperCard Discussion
And to minimize thrashing, I suppose that should really set the pictureData of cd grc 1 to reference file it...

-Mark

Haroldo Mauro

unread,
Jun 23, 2018, 6:04:47 PM6/23/18
to superca...@googlegroups.com
Thank you very much. I’ll keep that for future reference. I have finished the project.
This is how I’ve done it, not the smartest way, but it worked:

1, Open the png file with GraphicConverter 8
2. Save as PIC
3.Open the pic file with GC
4. Save as pict from resource
5. Open Resource Manager
6. Open the Project’s resourceFork on the left window
7. Click on the resourceFork tab on the right window
8. Choose “Open” from the right window popup menu
9, Navigate to te pic file and choose it
10. The resource appears on the right window
11. Select it then choose “Move” from the popUp menu in the middle.
Done
 Repeat this for several files



On Jun 23, 2018, at 18:04, 'codegreen' via SuperCard Discussion <superca...@googlegroups.com> wrote:

Here's a quickie project I just slapped together that uses pictureData and one of the IT sample project XFcns to convert any importable image format to a PICT resource:



Not a whole lot of fancy scripting here...

on mouseUp

  answer picture "Select an image file:"

  if it = "" then exit script

  lock screen

  set the itemDel to "."

  local rezName = item 1 of pathTools("fileFromPath", it)

  set the pictureData of cd grc 1 to file it

  export the raw pictureData of cd grc 1 into it

  set the pictureData of cd grc 1 to none

  answer startest("add star", "this proj", "PICT", rezName, it)

end mouseUp


If you'd prefer to import directly the the SharedFile instead, there's another IT sample XFcn enclosed which does that too (I'll leave that minor tweak as an exercise for the reader... ;-)

HTH,
-Mark

--
You received this message because you are subscribed to the Google Groups "SuperCard Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supercard-tal...@googlegroups.com.
To post to this group, send email to superca...@googlegroups.com.

Haroldo Mauro

unread,
Jun 23, 2018, 6:05:56 PM6/23/18
to superca...@googlegroups.com
Got it. Thank you!

On Jun 23, 2018, at 18:06, 'codegreen' via SuperCard Discussion <superca...@googlegroups.com> wrote:

OK, lets try that attachment again...




--
You received this message because you are subscribed to the Google Groups "SuperCard Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supercard-tal...@googlegroups.com.
To post to this group, send email to superca...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
<PICT Rezzer.sc45.zip>

Reply all
Reply to author
Forward
0 new messages