Re: Weird error
Re: Weird error
- Subject: Re: Weird error
- From: email@hidden
- Date: Mon, 07 May 2007 20:48:26 +0000
-------------- Original message ----------------------
From: Arnaud Nicolet <email@hidden>
> 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) & ":"
You need to replace the "+" characters with "&"
>
> 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 "&".
--- Begin Message ---
- Subject: Weird error
- From: Arnaud Nicolet <email@hidden>
- Date: Mon, 7 May 2007 20:40:38 +0000
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
--- End Message ---
_______________________________________________
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