• 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: How To Read a Dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: How To Read a Dictionary


  • Subject: re: How To Read a Dictionary
  • From: Luther Fuller <email@hidden>
  • Date: Sun, 5 Mar 2006 15:04:28 -0600

Marconi said ..,
I don't use AS much but I seem to recall that one could read an
application's dictionary by dropping the app on Script Editor or via

I got tired of dropping apps onto Script Editor. So, FWIW, this makes it easy to find scriptable applications ...

on open dropList
    tell application "Finder"
        repeat with itemRef in dropList
            class of item itemRef
            if the result is application file then
                my testScriptable(itemRef)
            else if the result is folder then
                my scanFolder(itemRef)
            end if
        end repeat
    end tell
end open ---------------------------------------

on testScriptable(applRef)
    tell application "Finder"
        try
            if (has scripting terminology of applRef) then
                display dialog (name of applRef) as text
            end if
        end try
    end tell
end testScriptable ---------------------------------

on scanFolder(folderRef)
    tell application "Finder"
        open window of folderRef
        set itemList to every application file of folderRef
        repeat with applRef in itemList
            my testScriptable(applRef)
        end repeat
        set itemList to every folder of folderRef
        repeat with subFolRef in itemList
            my scanFolder(subFolRef)
        end repeat
        close window of folderRef
    end tell
end scanFolder -----------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: How To Read a Dictionary
  • Next by Date: Re: How To Read a Dictionary
  • Previous by thread: Re: How To Read a Dictionary
  • Next by thread: AppleScript Studio Question
  • Index(es):
    • Date
    • Thread