Re: Feature request to solve a problematic AppleScript behavior with raw Apple Event codes
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