Script help

Post your questions and help other users.

Moderator: Martin

Post Reply
guuzendesu
Posts: 62
Joined: 15 Jan 2014 08:25

Script help

Post by guuzendesu » 12 Feb 2014 22:30

I'm familiar with programming to a slight extent, but the scripting language is not one I know. Can someone point me to a language that is "exactly like" this, so I can read how to use the functions, with examples?
Or, could someone give me some help with this: I'm putting a place name ("Home," etc.) in a file with its coordinates, all separated by commas. I want to be able to have a script ask me for a location from a list showing only the place names (every third entry starting with #1), then pass the next 2 entries on to the maps program. I already know how to set a location in Maps, I just don't know how to effectively read the text file and parse the entries.
Any help would be appreciated!

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Script help

Post by Martin » 13 Feb 2014 18:02

Hi,

The documentation of the scripting language is available in the Help-section of action Script.
To access the help page you can create a new action Script and press the [?]-icon on the upper right side when editing the action.
There's also a list of supported functions when you scroll down in the help page.
In your case you could probably use function lines = split(text, "\n") to get a list of text lines and then use a for loop to process each line.

Regards,
Martin

Post Reply