Posted By

pashky on 05/17/09


Tagged

Shell applescript gpsbabel


Versions (?)

Finder seclection script: GPSBabel upload routes and waypoints to Garmin


 / Published in: AppleScript
 

  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  

You need to login to post a comment.