applescript - repeat if exists document x
Jim Sims
sims at ezpzapps.com
Wed Mar 11 16:36:18 EDT 2009
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
sims at ezpzapps.com
Skype: sims.jim
iChat: techietours
______________________
Opportunity by Design
More information about the use-livecode
mailing list