How to open an XML file within an OSX bundle?

Klaus on-rev klaus at major.on-rev.com
Wed Jun 20 09:00:38 EDT 2012


Hi Colin,

Am 20.06.2012 um 14:51 schrieb Colin Holgate:

> This fails for me:
> 
> on mouseUp
>   put "binfile:iPhoto.app/Contents/info.plist" into t
>   put URL t into field 1
> end mouseUp
> which suggests you have to use put URL "bin file:… and can't get away with binfile: being in the string variable. Perhaps use Do?

???

>> on mouseUp
>>> put URL "binfile:iPhoto.app/Contents/info.plist" into field 1
>>> end mouseUp

This works for me with "binfile:" and "file:":

on mouseUp
    put URL"binfile:/Applications/iPhoto.app/Contents/info.plist" into field 1
end mouseUp

You need the "/Applications/" in front of the pathname!


Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com





More information about the use-livecode mailing list