Saving AppleScripts to .scpt files
Saving AppleScripts to .scpt files
- Subject: Saving AppleScripts to .scpt files
- From: Eric Blenkush <email@hidden>
- Date: Fri, 11 Apr 2003 20:07:37 -0700
Hi,
I am trying to save an applescript to a .scpt file. Cocoa will let you
read from applescript files but I dont see any way to write to them. Is
there a way? Or does anyone have some carbon code that does it?
One thing I was able to do was to execute another applescript in cocoa
that used a script object to write an applescript to an applet - but it
doesnt work for .scpt files apparently. This is what I executed from
cocoa:
script theScript
beep
end script
store script theScript in (file "Macintosh
HD:Users:blenkush:Desktop:test.app") replacing yes
Maybe there is a way to get the above to write to .scpt files? If not,
some carbon code would be nice.
Thanks,
Eric
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.