X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-osx%2Ftrunk%2Flauncher%2Fevents.applescript;fp=synfig-osx%2Ftrunk%2Flauncher%2Fevents.applescript;h=1da65dea67506b0da420a5a04454f4284d0a25e0;hb=4f638c4f8e5dc642a92d62da31233654eca397b2;hp=0000000000000000000000000000000000000000;hpb=7bf63b38a939d592d8a7c0c1f52aadfda2229427;p=synfig.git diff --git a/synfig-osx/trunk/launcher/events.applescript b/synfig-osx/trunk/launcher/events.applescript new file mode 100644 index 0000000..1da65de --- /dev/null +++ b/synfig-osx/trunk/launcher/events.applescript @@ -0,0 +1,14 @@ +on open names + set fileNames to {} + repeat with i from 1 to count of names + set fileNames to fileNames & {quoted form of (POSIX path of (item i of names))} + end repeat + + set fifoLocation to " >> ~/sinfg/fifo" + + repeat with fileName in fileNames + set cmdLine to {"echo O " & fileName & fifoLocation} + do shell script cmdLine + end repeat +end open +