How to open an XML file within an OSX bundle?
Klaus on-rev
klaus at major.on-rev.com
Wed Jun 20 09:20:47 EDT 2012
Hi Colin,
Am 20.06.2012 um 15:12 schrieb Colin Holgate:
> My example stack was saved in Applications, and the relative path did previously work.
I NEVER rely on relative pathnames (or even set the DEFAULTFOLDER!) if I can construct an ABSOLUTE pathname! :-)
> But, it isn't working now!
>
> So, this works:
>
> on mouseUp
> answer file""
> put URL ("binfile:"&it&"/Contents/info.plist") into field 1
> end mouseUp
>
> So does this:
>
> on mouseUp
> answer file""
> put "binfile:"&it&"/Contents/info.plist" into t
> put URL t into field 1
> end mouseUp
>
> Perhaps it's just the parentheses that are needed?
In ANY case!
But maybe this is also a permission thing?
I think you cannot access the app folder from another app if not logged in with ADMIN rights.
> On Jun 20, 2012, at 9:00 AM, Klaus on-rev <klaus at major.on-rev.com> wrote:
>
>>
>>> You need the "/Applications/" in front of the pathname!
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com
More information about the use-livecode
mailing list