Opening package with LiveCode on OSX
tsj at unimelb.edu.au
Mon Mar 14 20:33:46 EDT 2011
On 15/03/11 10:46 AM, "David Bovill" <david at vaudevillecourt.tv> wrote:
> Before I delve in and fiddle around - does anyone know the ins and outs of
> opening OSX packages with an app. AFAIK an apple event is sent when you open
> a file, and you can trap for that. Also you register somehow the package
> file extension with an app - so that double clicking on it would open it.
> Putting the two together you should be able to get LiveCode to process the
> contents of the package when you double click on it?
> Any pointers?
If you turn record in the Applescript editor and then double-click a package
file then it seems as if Applescript treats packages just the same as
ordinary files. However, packages (.pkg) are automatically opened in the
Installer app so if you want to deal with them from LiveCode I think you'd
need to change the file extension and change LiveCode's (or your app's)
plist settings so that you and not the Installer own it.
The other option is to simply 'launch' the package from within Livecode
rather than having the user double-click the package in the Finder.
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
Dr Terry Judd | Senior Lecturer in Medical Education
Medical Education Unit
Melbourne Medical School
The University of Melbourne
More information about the Use-livecode