• 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: Feature request to solve a problematic AppleScript behavior with raw Apple Event codes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature request to solve a problematic AppleScript behavior with raw Apple Event codes


  • Subject: Re: Feature request to solve a problematic AppleScript behavior with raw Apple Event codes
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 22 Oct 2010 09:35:25 +1100
  • Thread-topic: Feature request to solve a problematic AppleScript behavior with raw Apple Event codes

Can you not compare with known reference types? Something like:

tell application "System Events"
    set namedRef to fonts folder -- named
    set idRef to disk 1 -- id
    set procRef to process "Finder" of application "System Events"
    set refRecord to procRef as record
    if «class form» of refRecord = «class form» of (namedRef as record) then
        -- named
    else if «class form» of refRecord = «class form» of (idRef as record)
then
        -- id
    else
        -- etc
    end if
end tell

--
Shane Stanley <email@hidden>



 _______________________________________________
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

References: 
 >Feature request to solve a problematic AppleScript behavior with raw Apple Event codes (From: Scott Babcock <email@hidden>)

  • Prev by Date: Re: Delivery Status Notification (Delay)
  • Next by Date: Re: Scripting and Back to Mac
  • Previous by thread: Feature request to solve a problematic AppleScript behavior with raw Apple Event codes
  • Next by thread: Re: Feature request to solve a problematic AppleScript behavior with raw Apple Event codes
  • Index(es):
    • Date
    • Thread