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?
|
"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=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 01:47 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.