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

Re: Weird error


  • Subject: Re: Weird error
  • From: Arnaud Nicolet <email@hidden>
  • Date: Tue, 8 May 2007 13:40:35 +0200

Le 7 mai 07 à 23:56 Soir, Emmanuel a écrit:

At 10:40 PM +0200 5/7/07, Arnaud Nicolet wrote:
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 "&".

That's exactly what you're doing, Arnaud, isn't it? Eaten too much Javascript recently?

Woops, all my apologizes. My dinner was RealBasic, not Javascript, if that matters.


I typed too fast and, when I saw the error, I focused on the "CurrentYear as text" since I looked for a logical error rather than a typo error.

Le surmenage vous guette, comme dirait JB.

The problem has to do with using both RealBasic and AppleScript (and typing fast, thinking I know the language I'm actually using). But... who is JB?
(sorry, I didn't know if I should write in french here) _______________________________________________
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
  • Prev by Date: Re: Strange error message when using script bundle, stack overflow?
  • Next by Date: Re: Strange error message when using script bundle, stack overflow?
  • Previous by thread: Re: Weird error
  • Next by thread: Script Acrobat 8 Pro to Replace Pages
  • Index(es):
    • Date
    • Thread