• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: open Applications' Dictionaries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: open Applications' Dictionaries


  • Subject: Re: open Applications' Dictionaries
  • From: Philippe GRUCHET <email@hidden>
  • Date: Sun, 23 Feb 2003 05:09:30 +0100

Riccardo,

[no break]

open location "file://localhost/System/Library/ScriptingAdditions/ StandardAdditions.osax"

--> opens this osax in Apple's SE.

Philippe Gruchet

How do you make this run as a Script (ie: from the osa menu) as oposed to an app? I used to use

tell application (path to frontmost application as text)

To do this on 9.2.2, but for some reason it doesn't work in OSX.


You can try [no break]:

set text item delimiters to ":"
set FrontApp to (path to frontmost application as text)'s text item -2
tell application FrontApp to display dialog "Front app is: " & FrontApp
set text item delimiters to ""

From ScriptMenu, you'll always get "System Events.app" as frontmost application, and it's not very useful.


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.


Kind regards,
Philippe Gruchet/SVM Mac
VNU Publications France
http://svmmac.vnunet.fr
_______________________________________________
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.

  • Prev by Date: Re: Understanding a repeat loop (strings/characters)
  • Next by Date: Re: Understanding a repeat loop (strings/characters)
  • Previous by thread: Re: Quark-group boxes
  • Next by thread: Re: open Applications' Dictionaries
  • Index(es):
    • Date
    • Thread