Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " Running AppleScript: ----------------------------------------------------------------
- func! AppleScriptRunAndForget (ascode)
- silent exec '!osascript' '-e' shellescape( a:ascode ) | redraw!
- endfunc
- " testarg: 'tell application "Finder" to make new Finder window'
- " find next testarg line, "Wy[to some other register])"
- func! AppleScriptRunAndForgetAsync (ascode)
- exec 'Dispatch!' 'osascript' '-e' shellescape( a:ascode )
- endfunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement