Photoshop selections & missing variables
Photoshop selections & missing variables
- Subject: Photoshop selections & missing variables
- From: Mr Tea <email@hidden>
- Date: Thu, 06 Mar 2003 20:17:35 +0000
Like others on this list, I've been trying to make sense of selection
objects in Photoshop 7. The results of my most recent efforts are
monstrously confusing, and I'm hoping that someone here can shed some light
on what's happening.
property theReg : anything
tell application "Adobe Photoshop 7.0"
tell document 1
set theReg to select region {{20, 20}, {50, 20}, {50, 50}, {20, 50}}
contents of my theReg
end tell
end tell
theReg
--> The variable theReg is not defined.
If I ask for 'contents of theReg' rather than 'my theReg' in the document
tell block, I also get a variable not defined error, otherwise it's a
reference to the selection.
What particularly concerns me is why assigning a value to 'theReg' in the
document tell block seems to nuke it in all other contexts, even when it has
been declared as a property or global at the top of the script.
I also tried asking for 'my theReg' at the end of the script. That got rid
of the error, but no value of any kind was returned.
Is this as messed up as it seems?
TIA
Nick
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.