Has anyone tried to use AppleScript to write a nice double-clicker for PD on MacOS X? Someone suggested this approach to me but I have never used AppleScript.
.hc
zen \ \ \[D[D[D[D
Do you mean AppleScript as an installer? I could go on about the lack of security in running unknown scripts (and the bad habits it encourages), or how I know of few to no successful AppleScript-driven installers on MacOSX.
But I'd rather just say that AppleScript is a real pain to program with. Ick.
However, on the other hand, I have kicked around the idea of Folder Actions (with AppleScript most likely) allowing for a nice drag-and-drop install of externals. (Drag a folder onto /Library/Pd, and it moves the folder into AdditionalDocumentation, the externals/libraries/abstractions into Externals, and help patches into Help.) That, however, would require a strong, top-down convention for marking the locations and destinations of the externals and help patches.
Cheers, adam
Hans-Christoph Steiner said this at Tue, 18 Mar 2003 06:29:03 -0800:
Has anyone tried to use AppleScript to write a nice double-clicker for PD on MacOS X? Someone suggested this approach to me but I have never used AppleScript.
.hc
zen \ \ \[D[D[D[D
PD-dev mailing list PD-dev@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev
I was actually thinking of using AppleScript to make a launcher, instead of the Pd.command. I think its good to stick with the MacOS X packages.
I like the Folder Action idea, that sounds very Mac-like.
.hc
On Tue, 18 Mar 2003, Adam Lindsay wrote:
Do you mean AppleScript as an installer? I could go on about the lack of security in running unknown scripts (and the bad habits it encourages), or how I know of few to no successful AppleScript-driven installers on MacOSX.
But I'd rather just say that AppleScript is a real pain to program with. Ick.
However, on the other hand, I have kicked around the idea of Folder Actions (with AppleScript most likely) allowing for a nice drag-and-drop install of externals. (Drag a folder onto /Library/Pd, and it moves the folder into AdditionalDocumentation, the externals/libraries/abstractions into Externals, and help patches into Help.) That, however, would require a strong, top-down convention for marking the locations and destinations of the externals and help patches.
Cheers, adam
Hans-Christoph Steiner said this at Tue, 18 Mar 2003 06:29:03 -0800:
Has anyone tried to use AppleScript to write a nice double-clicker for PD on MacOS X? Someone suggested this approach to me but I have never used AppleScript.
.hc
zen \ \ \[D[D[D[D
PD-dev mailing list PD-dev@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev
--
Adam T. Lindsay atl@comp.lancs.ac.uk Computing Dept, Lancaster University +44(0)1524/594.537 Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
zen \ \ \[D[D[D[D
Hi Hans-Christoph,
I found out about .command files from a user of my program a while ago. They're simple shell scripts but end in .command instead of .sh or anything like that, and they're double-clickable to run. the .command file i have for blue is:
#/bin/sh cd `dirname $0` java -cp ../lib/blue.jar:../lib/jython.jar:../lib/EXML.jar:../lib/js.jar blue.Blue
I don't know if that method will allow you to edit the icon, but works to double-click and run.
also, it might be nice to package pd in the convention of MacOSX apps, using a .app directory, putting a resources dir and program dir inside, a manifest file, icons, etc. (I don't know the complete details as I'm looking into it myself).
I'm not a regular OSX user, so if I'm incorrect in any of this, please someone correct me.
steven
On Tue, 2003-03-18 at 06:29, Hans-Christoph Steiner wrote:
Has anyone tried to use AppleScript to write a nice double-clicker for PD on MacOS X? Someone suggested this approach to me but I have never used AppleScript.
.hc
zen \ \ \[D[D[D[D
PD-dev mailing list PD-dev@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev
this will relate to something i've been meaning to look into... i have a .bat file on my windows box that i use to launch pd... and i associated fiules of type .pd to this batch file... so i can double click a random patch and pd will load it... so far so good... the only problem is that the second time i do that, it launches a second instance of pd... combine this with the *really bad* bug with either port audio, pd or my ASIO driver where when i launch 2 instances of PD who try to both grab the ASIO driver it pegs my CPU to 100% ... does anyone know if there is a way to make PD open a patch in an *existing* instance of pd instead of running a new one?
-Josh
Hans-Christoph Steiner wrote:
Has anyone tried to use AppleScript to write a nice double-clicker for PD on MacOS X? Someone suggested this approach to me but I have never used AppleScript.
.hc
zen \ \ \[D[D[D[D
PD-dev mailing list PD-dev@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev