• 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
Weird error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weird error


  • Subject: Weird error
  • From: Arnaud Nicolet <email@hidden>
  • Date: Mon, 7 May 2007 22:40:27 +0200

Hi,

I have a problem with that script:

set n to "Test"
set CurrentYear to 2003

set txt to "Move " + n + " to the folder of the year " & (CurrentYear as text) & ":"

I get this error:

Can't make "Move " as integer.
Why does it tries to convert it to an integer? I'd understand if I used "+" instead of "&".
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Weird error
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: PDF File says in use by Mac OS X
  • Next by Date: Re: Weird error
  • Previous by thread: Re: Evaluating if a file exists
  • Next by thread: Re: Weird error
  • Index(es):
    • Date
    • Thread