• 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: Recording AppleEvent Class Codes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recording AppleEvent Class Codes


  • Subject: Re: Recording AppleEvent Class Codes
  • From: "koenig.yvan" <email@hidden>
  • Date: Fri, 26 Jul 2013 16:44:12 +0200


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


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Recording AppleEvent Class Codes
      • From: 2551 <email@hidden>
References: 
 >Illustrator Artboard Ruler Origin (From: Robert Stott <email@hidden>)
 >Re: Illustrator Artboard Ruler Origin (From: Shane Stanley <email@hidden>)
 >Recording AppleEvent Class Codes (From: Kaydell Leavitt <email@hidden>)
 >Re: Recording AppleEvent Class Codes (From: Shane Stanley <email@hidden>)
 >Re: Recording AppleEvent Class Codes (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Recording AppleEvent Class Codes
  • Next by Date: Re: mail
  • Previous by thread: Re: Recording AppleEvent Class Codes
  • Next by thread: Re: Recording AppleEvent Class Codes
  • Index(es):
    • Date
    • Thread