I came across this rather old thread while I was looking for something similar today, and noticed that the tread did not give a direct answer to the original question.
In case someone else should be looking for an answer, here is what I have found:
It is true, as the original poster noted, that you can enter a command into the message box like this, "go to card ID 2345" and the command will behave as expected (that is, go to the specified card). However, if you want to do the same thing in a script you must format the command somewhat differently:
Note the addition of the quotation marks around the ID number.
If you have the card ID stored in a variable (say tCardID), then you need to format the script command like this:
Code: Select all
go to "card ID" && quote & tCardID & quote
Unfortunatly, LiveCode's documentation is not very careful about explaining when quotes are needed or not. Indeed you will find examples given that are wrong or outdated or both, which is why these Forums are so useful (among many other things).