Re: Booleans in AS
Re: Booleans in AS
- Subject: Re: Booleans in AS
- From: John Cochrane <email@hidden>
- Date: Thu, 07 Mar 2002 23:10:26 +1100
Andy Wylie wrote:
>
for occasions when "2output2" may exist try...
>
>
tell application "Finder"
>
set {folName, cnt} to {"Test", 0}
>
set |exists| to (get exists of folder named folName of desktop)
>
repeat until |exists| = false
>
set cnt to cnt + 1
>
set folName to folName & cnt
>
set |exists| to (get exists of folder named folName of
desktop)
>
end repeat
>
set newFolder to (make new folder at desktop with properties
>
{name:folName})
>
end tell
When I tried this successive folders were created named Test1, Test12,
Test123 etc. instead
of Test1, Test2, Test3 etc
I assume I have to conveert to number from text but as a relative
newcomer I had trouble
doing this. Any suggestions?
John Cochrane
_______________________________________________
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.