Re: open Applications' Dictionaries
Re: open Applications' Dictionaries
- Subject: Re: open Applications' Dictionaries
- From: Kai <email@hidden>
- Date: Wed, 26 Feb 2003 01:23:18 +0000
on Tue, 25 Feb 2003 07:10:31 +0100, Philippe GRUCHET
<email@hidden> wrote:
>
Riccardo,
>
>
> Also, how do you open Applications' Dictionaries using this technique?
>
>>
>
>> Example, from Apple's SE2:
>
>> ---
>
>> tell me to open alias "put here the full path to your app"
>
>>
>
>> --To get the path, you can use:
>
>>
>
>> default application of (info for (choose file))
>
>>
>
>> --We get:
>
>>
>
>> set aPath to default application of (info for (choose file))
>
>> tell me to open aPath
>
>>
>
>> --> open the dico of the chosen app.
>
>>
>
>
>
> Mmmh, I guess I'm going to have to try SE2, as it doesn't work in SE1.
>
>
>
In Apple's SE (1.6), you can try:
>
>
tell me to open (choose file) --> choose an app
>
>
--> open the dico of the chosen app
>
>
Note 1: 'choose file' returns pathname as alias. So,
>
>
tell me to open alias "put here the full path to your app"
>
>
works fine too.
If you want to use an applet, 'tell me' won't work. However, you could try
using the Finder instead (which should also work from SE):
============================================
tell application "Finder" to open [NO-BREAK]
application file id "BOBO" using application file id "ToyS"
--> open AppleWorks dictionary (change "BOBO" to other app id as required)
============================================
If that's too hard-wired, you can still incorporate 'choose file':
============================================
tell application "Finder" to open (choose file of type [NO-BREAK]
{"APPL", "APPC", "appe", "osax"}) using application file id "ToyS"
--> open dictionary of chosen file (if it has one)
============================================
--
Kai
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.