Opening an untitled and unsaved NotePad file via shell

Mark Smith mark at
Fri Jul 27 11:16:23 EDT 2007

This seems to work on my OS X laptop:

on openTempFile pText
   put the tempName into tFile
   put pText into URL ("file:" & tFile)
   launch tFile with "/Applications/" -- path to notepad,  
in your case.
   wait 1 second
   delete file tFile
end openTempFile



On 27 Jul 2007, at 14:36, Mark E. Powell wrote:

> I can put data into a text file and open it via shell, but this  
> method tends to leave a flotsam of files on disk, unless I recycle  
> the file name and overwrite (which I don't want to do).
> Is it possible to put data into a text file that is *not* saved to  
> disk and has no name?  i.e. as if Note Pad were launched and text  
> were pasted into the document?
> Thanks in advance
> Mark
> _______________________________________________
> use-revolution mailing list
> use-revolution at
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:

More information about the Use-livecode mailing list