Discover browsers on user system
Terry Judd
tsj at unimelb.edu.au
Wed Jun 23 21:34:45 EDT 2010
On 24/06/10 11:22 AM, "Scott Rossi" <scott at tactilemedia.com> wrote:
> Recently, Simon Lord wrote:
>
>> Any way to immediately know which browsers are installed on the user's
>> system and drop those into a menu? Same thing for image editors if possible.
>
> It's funny, I remember using scripts like a decade ago to retrieve the
> *default* Web browser, but Rev's goURL and launch commands have obviated the
> need for this and it's been so long I don't recall the scripts I used to do
> it (good times...). :-)
>
> To automatically get a list of installed browsers or image editors seems
> difficult since I believe the system only "cares" about the defaults
> established by the user (even then, so many apps on OS X are not officially
> installed, just "placed"). Several Web development tools I have allow you
> to assign multiple apps as defaults for testing purposes, but aside from a
> plugin installer that walks through system directories, I've never seen a
> tool that automatically knows what suitable apps are installed.
>
> Maybe someone else has an option.
I guess under OSX you could try setting the defaultFolder to the
Applications folder and parsing the files and the folders for likely
candidates. Wouldn't be too hard for browsers but might be tricky for image
editors once you go past the obvious candidates.
Terry...
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
--
Dr Terry Judd | Senior Lecturer in Medical Education
Medical Education Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne
More information about the use-livecode
mailing list