Opening an untitled and unsaved NotePad file via shell

Eric Chatonet eric.chatonet at sosmartsoftware.com
Fri Jul 27 11:19:40 EDT 2007


Hi Mark,

Yes it works on MacOS but will not work on Win32 :-(
on Win, the file will be locked by NotePad...

Le 27 juil. 07 à 17:16, Mark Smith a écrit :

> 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/TextEdit.app" -- path to  
> notepad, in your case.
>   wait 1 second
>   delete file tFile
> end openTempFile
>
> Best,
>
> Mark
>
> 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



Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------





More information about the use-livecode mailing list