Le 26/07/2013 à 15:38, Alex Zavatone < email@hidden> a écrit : Is there a collected table of these anywhere?
I'm unaware of such a resource.
Here is a simple tip.
Create a fake script triggering every action recognized by a given application which you own. Compile it and save it once as a script and once as text. After that, move the application in a temporary folder and zip it. This way tha app is no longer visible for AppleScript. Open the script and its text version. AppleScript will ask you to tell it were is the app. Select one which is far from the function of the hidden one. You will get the raw codes corresponding to the actions which AppleScript can no longer decipher. You will have their deciphered wording available in the text version. So you may store every pair "deciphered action" & "raw code" in a database or a spreadsheet where you will be able to retieve them when needed.
Here is a sample with the application "Pages"
(1) the text version : tell application "Pages" to tell document 1 name path count paragraphs count words count characters body text color of character 1 font size of character 1 properties of character 1 count pages end tell
(2) the deciphered one after selecting the application AU Lab.app
tell application "AU Lab" to tell document 1 name «class ppth» count paragraphs count words count characters «class pTxt» color of character 1 «class pFSz» of character 1 properties of character 1 count every «class cPag» end tell
It's not difficult to build the list :
path - «class ppth» body text - «class pTxt» font size - «class pFSz» pages - «class cPag»
Have fun.
KOENIG Yvan (VALLAURIS, France) vendredi 26 juillet 2013 16:43:44
|