Set AppleScript's text item delimiters to "" Set AppleScript's text item delimiters to the replacement_string Set the item_list to every text item of this_text Set AppleScript's text item delimiters to the search_string On replace_chars(this_text, search_string, replacement_string) > function to replace a particular char in a string with an other one It takes 2 command line parameters: the location of the GPX file and the timeout between each iteration. Simple right? And this is what my final script looks likes. Now I only have to read this XML file, loop over the elements and read the Longitude and Latitude of each one, enter these values in my ‘Enter Location’ popup window, wait a couple of seconds and continue my loop. Although, in the generated GPX file there is an indication about how long it take to get from one waypoint to the next, I’m going to ignore this for now and simply say in my script that there is a certain fixed amount of time between each waypoint. On this website, you can put waypoints on a map and generate a GPX file, which is just a simple XML file representing the route you outlined. I found out that reading XML files with AppleScript is quite simple, so I went to.
#XAMARIN IOS EMULATOR WINDOWS UPDATE#
The only thing left to do, is repeat this process and update the Longitude and Latitude each time. Set value of text field 2 of popup to "4,454144" Set value of text field 1 of popup to "51,051801" Click menu item "Custom Location…" of menu of menu item "Location" of menu "Debug" of menu bar 1