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" <[email protected]> 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
> 
> [email protected]
> Skype:   sims.jim
> iChat:   techietours
> ______________________
> Opportunity by Design
> 
> 
> 
> 
> _______________________________________________
> use-revolution mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to