• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Booleans in AS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Booleans in AS
      • From: "Paul F. Henegan" <email@hidden>
    • Re: Booleans in AS
      • From: Matthew Smith <email@hidden>
    • Re: Booleans in AS
      • From: John Cochrane <email@hidden>
  • Prev by Date: Re: Request for AppleScript books [and another newbie question]
  • Next by Date: Re: What sort of monopoly is MS supposed to have in Macintosh apps?
  • Previous by thread: Re: Booleans in AS
  • Next by thread: Re: Booleans in AS
  • Index(es):
    • Date
    • Thread