text object question
is it possible to use a specific search path in a read / write message to a text file?
like: "read ……/Desktop/Files/file.txt"
Send "read" or "write" followed my an absolute path, enclosed in "quotes" if it contains spaces, to the [text] object. For example:
read "Macintosh HD:/Users/myname/Desktop/filename.rtf"
write "Macintosh HD:/Users/myname/Finances/lotsamonies.csv"
what if I don’t know user name?
let’s say I have a patch in applications… I want to write a text file to be placed on desktop, on every computer that runs my patch…
Actually on a mac you could just use applescript with Bill Orcutt’s [shell] external.
----------begin_max5_patcher---------- 385.3ocqS00SCBCE8Y3WwM8koIrEf8QTeyG8IWhuXhYwzA2AUgVB8Rb5x9uK s.YL0kfNeoM8z1SOm6o2ctNr0psnlA2.OANN6bcbrPF.m10Nrb91nLt1dLlD eSs9ElWyVDtkrvEkBI0gVvonTgL44RLhZHe5hfI9dvzYgMSlwP+I9vp16rQI IIOGsrcaofm0wlrJWHyPx99AG.UUTGpeORzhOrjDXdoFXQrk0ZcONbFyfs20 0L3cdlVmhYYCvzFiVOM++0zgC1zy6Xs41z6EXi.YLOfslKSXvp+PYIG0ZdB9 s5hRy0QkhBBFivHMRPLpekTEK4TJPJX48Ob2iPgYkZCbQQKbpJGgMprXr7Rf qAMU+qJYjkkRjpJk8IZT26lIjXjpRR8qJmNNBuZgc55lTI72mGg+XdDL37X5 oyiixAqtr16KsnVyYvONbzppxnNpZCd3f6pqcjPxIgR16L0cD8OTpHNFk8ap xEwEp5t6VMbheJCURSGfjleFJpdwd2OA4IDJk. -----------end_max5_patcher-----------
[getpath] for Mac OS X) or [getenv] for Windows
will give you the user paths (and many others).
both externals can be found in my collection here: http://www.jasch.ch/dl/