The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle Extras (http://forums.omnigroup.com/forumdisplay.php?f=7)
-   -   Applescript on object (http://forums.omnigroup.com/showthread.php?t=20143)

cyleigh 2011-02-14 04:44 PM

Applescript on object
 
If I attach a script to an object, is there a quick way that I can get the id of that object when the script is running?

whpalmer4 2011-02-14 06:46 PM

"self" refers to the object in the script, and id of self will give you the id.
[code]
display dialog "My name is " & (name of self as text) & " and my id is " & (id of self as number)
[/code]

cyleigh 2011-02-14 06:54 PM

[QUOTE=whpalmer4;93310]"self" refers to the object in the script, and id of self will give you the id.
[code]
display dialog "My name is " & (name of self as text) & " and my id is " & (id of self as number)
[/code][/QUOTE]

Thanks. I was just coming to reply to my own question with this answer! (Note to self: reading the help files leads to information!)


All times are GMT -8. The time now is 06:27 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.