How do you run an applescript from inside a Kscript? I've attached the applescript as a dependency but I want to call it in my script but can't figure out how.
Answer Summary:
What you would do is run osascript with your apple script as a parameter.
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

5
What you would do is run osascript with your apple script as a parameter.
Answered 04/02/2012 by: dchristian
Red Belt

  • /usr/bin/osascript > /dev/null
    tell application "Finder"
    set macSrcPath to POSIX file "$fullSrcPath" as text
    set macDestPath to POSIX file "$fullDestPath" as text
    make new alias file to $srcType macSrcPath at folder macDestPath
    end tell
Please log in to comment
Answer this question or Comment on this question for clarity