Finder seclection script: GPSBabel upload routes and waypoints to Garmin


/ Published in: AppleScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. on run
  2. tell application "Finder"
  3. set sel to selection
  4. set output to ""
  5. repeat with x in sel
  6. set p to POSIX path of (x as text)
  7. set AppleScript's text item delimiters to "."
  8. set ext to last text item of p
  9. set output to output & (do shell script "/Applications/gpsbabel -w -r -i " & ext & " -f " & quoted form of p & " -x transform,rte=trk -x nuketypes,tracks -x simplify,count=50 -o garmin -F /dev/cu.PL2303-0000101D ") & "
  10. "
  11. end repeat
  12. choose from list paragraphs of output with title "GPSBabel result" with empty selection allowed
  13. end tell
  14. end run

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.