On Mar 11, 2009, at 9:27 PM, Mark Schonewille wrote:

if exists document x then set z to z + 1 else exit repeat

Bless you Mark.
Loong day here today.

-- THIS WORKS!
set z to 0
set x to 0
repeat
        tell application "Photoshop Elements 4.0"
                set x to x + 1
                if exists document x then
                        set z to z + 1
                else
                        exit repeat
                end if
                set counter to z
        end tell
        
end repeat
return counter

sims

[email protected]
Skype:   sims.jim
iChat:   techietours
______________________
Opportunity by Design




_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to