Opening a window on Windows?

Ian Wood ian at azurevision.co.uk
Fri Apr 9 17:38:14 EDT 2004


Thanks, that looks like it should do the business, I'll try it next 
week when I have access to a Windows machine again.  The perils of 
doing cross-platform development when you only have access to one of 
the platforms ;-)

Ian

On 9 Apr 2004, at 22:08, Martin Baxter wrote:

> Ah, I think I understand now, you want to open a Windows Explorer 
> Window at
> your directory - yes?.
>
> In that case, you'll need a shell command I think.
> I'm hardly the world's expert on those, but the following works for me 
> on
> XP. Obviously substitute your own filepath and watch that the 
> delimiters in
> the actual filepath are Windows backslashes *not* Unix/Rev 
> forwardslashes.
>
> set the hideconsolewindows to true.
> -- or you'll get a momentary flash of the consolewindow
> get shell("explorer C:\Documents and Settings\User\")
>
> -- which should open an explorer window at the folder \User\
>
> HTH
>
> Martin
>
>> Sorry, I didn't make it clear enough- I want Windows to open a window
>> showing the files on the hard drive, the equivalent of a Finder window
>> on Mac OS.  That way the user can manually do things with the files
>> afterwards.
>>
>> The app makes video sequences from QTVR panoramas.  If Rev could turn
>> still image sequences into video files opening a 'system' window
>> wouldn't be necessary, but as it is everything goes through QuickTime
>> Pro afterwards.  As it is an app for QTVR panorama producers they all
>> have a copy of QT Pro :-)
>>
>> http://www.azurevision.co.uk/qtvr2mov/
>>
>> Ian Wood
>>
>> On 9 Apr 2004, at 18:00, Martin Baxter wrote:
>>
>>> Hello Ian,
>>>
>>> Depends what you mean by "a window". If you mean a file selection
>>> dialog,
>>> you could use:
>>>
>>> answer file "select a jpeg" with filter "JPEG Files,*.jpg,*.jpeg"
>>>
>>> or if you want to get a list of files in a folder and display it in a
>>> window of your own you could use the files() function and filter 
>>> lines
>>> of
>>> the result for the extension your app writes (ie .jpg or .jpeg)
>>> (Though, if your app created the files, it might be possible to just
>>> build
>>> a list internally as it creates them ?)
>>>
>>> ### e.g. (untested)
>>>
>>> put the defaultfolder into keepdefault
>>> set the defaultfolder to "theimagefolder"
>>> put the files into tFileList
>>> set the defaultfolder to keepdefault
>>>
>>> ##now you have a list of all the files in the folder
>>> ##if the folder only has your jpegs in it then you're OK
>>> ##otherwise you could...
>>> ##filter for the ones that contain .jpg or .jpeg
>>>
>>> filter tFileList with "*.jpg"
>>> #or
>>> filter tFileList with "*.jpeg"
>>> #depending which of these your app used
>>>
>>> /*tFileList should now be a list of the jpegs in the selected 
>>> folder*/
>>>
>>> HTH
>>>
>>> Martin
>>>
>>>> I want to open a window to show the user a load of new JPEG files 
>>>> that
>>>> have just been generated by my app.  On Mac this is easily achieved
>>>> with a couple of lines of AppleScript.  Is there any way of 
>>>> recreating
>>>> this on Windows?
>>>>
>>>> Thanks in advance for any tips,
>>>>
>>>> Ian
>>>
>>>
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list