obtaining application paths

Terry Judd tsj at unimelb.edu.au
Tue Mar 31 06:22:09 EDT 2009


Well if you have a path to a file whose default application is Mail (or
whatever) then you can...

tell application "System Events" to get the path of the default application
of file <filepath>

...and that doesn't open the application.

There may be other ways though.

HTH,

Terry...


On 31/03/09 7:49 PM, "Jim Sims" <sims at ezpzapps.com> wrote:

> On OS X the applescript:
> 
> tell application "System Events" to (get path to application "Mail")
> 
> will get the path to an application (in this case "Mail.app").
> However, it seems to need to open that app before it can get the path.
> 
> Is there an applescript or shell script that will tell me the path to
> an application without opening it first?
> 
> I do understand that on can use answer file - but I'd like an
> alternative.
> 
> sims
> 
> sims at ezpzapps.com
> Skype:   sims.jim
> iChat:   techietours
> ______________________
> Opportunity by Design
> 
> 
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list