General information
Title:
Calling Beautify programatically
Hi all,
I want to call _Beautify programatically. I know I can do the following:
do (_beautify) with "junk.txt", lcOptions
where lcOptions is a binary character string of values. Unfortunately, while this seems to run fine, I can't find an output file with the formatted code.
So I tried the following code (with junk.txt containing code to be formatted):
Set Path to JustPath(_beautify)
Set Procedure to beautify.app
? beautify("junk.txt", zzz)
* returns a temp file name. But that is
* the source file, not formatted file....
aa = beautify("junk.txt", zzz)
? aa
In further analysis, it appears that it does try to create an object OX based on the beautify class. Unfortunately, I can't get it to let me create that class. I have tried to set the library and procedure to the beautify.app, but to no avail.
Any ideas on how to call _beautify such that you can get the formatted code? What about the options settings?
Thanks,
Fletcher
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only