Opening a window on Windows?
martin at materiaprima.fsnet.co.uk
Fri Apr 9 16:08:38 CDT 2004
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\
>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
>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 :-)
>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
>> 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
>> 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
>> 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"
>> filter tFileList with "*.jpeg"
>> #depending which of these your app used
>> /*tFileList should now be a list of the jpegs in the selected folder*/
>>> 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,
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>use-revolution mailing list
>use-revolution at lists.runrev.com
More information about the use-livecode