Northcode's Runtime.exe verses Proxy.exe
Hello Flashers,
For MX Projector files on dual platform CD-ROMs, on the PC side, does anyone know which one of Northcode's DOS pop-up blocking .exe files work better (or easier)? -- Runtime.exe or Proxie.exe.
NOTE: I'm creating all of this on a Mac and I have no problem creating the .bat files for the PC and the Applescript files on the Mac side.
I have several WORD files, several ZIP files (for high-res compressed image files) and several PDF files on my CD-ROM. I want to open the files on the users computer with the appropriate application (MS Word, WinZIP or Acrobat Reader).
I understand I need to create a folder called: fscommand and place all of the exe files, bat files and the target Word, Zip, and PDF files in the same folder.
Once I place Northcode's Runtime.exe - or - Proxie.exe in the fscommand folder, how do I write the fscommand code for the BUTTONs:
I presume the code it as follows:
===========================
on (release) {
fscommand ("exec", "proxie.exe");
}
===========================
"proxie.exe" will open "proxie.bat"
(I will rename "proxie.exe" and "proxie.bat" and call them something like: "myWord01.exe" and "myWord01.bat" to open the designated files I want to target to be opened)
My bat file will read:
===========================
START myWordfile01.doc
cls
===========================
Thus, "proxie.exe" (renamed as "myWord01.exe") will open and run "proxie.bat" (renamed to "myWord01.bat") to run the bat file to open:
"myWordfile01.doc"
If anyone with experience with this sort of thing can confirm my information is correcet before I start doing the physical coding on my work file, please let me know. If you detect any errors, please let me know as well so I can avoid the legwork.
Reminder: I'm creating everything on a Mac, so I cannot use any of those amazing third party solutions (*********** etc.). I hope they come out with Mac versions of those apps soon.
Needless to say, for the Mac side, I had to make a duplicate of my master Flash file in which the button codes (on release) use fscommand to "exe" corresponding Applescripts to open the target files on Macs. SHEESH!!! At least the Applescripts are super simple and do not have the DOS pop-up window problem.
Thank you, Northcode, for your free scripts to remedy the DOS pop-ups!
Happy New Year to everyone!
Terrence
[email protected]
Northcode's Proxie.exe WORKS GREAT!!!!!
Hello Northcode,
I tried your "proxie.exe" / "proxie.bat" solution to open files from a dual platform CD-ROM in the native application of the target file I want to open (Word files, PDF files and WinZip files).
To my amazement, your "proxie.exe" / "proxie.bat" solution works perfectly and no DOS command window opens at all. Before using your solution, I used the getURL command in Flash to open files. This way sucked because it triggers the default web browser to handle the command. YUCK.
Thank you for your SIMPLE and VALUABLE solution to open files on my CD-ROM project. On the PC side, your your "proxie.exe" / "proxie.bat" solution is only a little more complex than using an Applescript on the Mac side. The Mac Applescript is really simple and it handles the command in one Applescript without the need for a separate bat file.
If only some of the third party Flash solution software was also available for the Mac.
Now: how do I get a file (ie: a jpeg) to transfer from the CD and be saved onto the PC Desktop? There's a simple Applescript to do this on the Mac side. Is there any code for the PC??
Thanks again, Northcode!!!!
======================
Just Copying a JPEG to the Desktop
Hello again,
This is what I need to happen:
From the Flash Projector file running on a CD-ROM, I need to Press a button called "Download Photo" and it will trigger a target JPEG image to copy from the CD onto the Desktop Computer. That's it!
Do you know if the "proxie.exe" solution works on Windows 95, 98, and 2000? I know it works on Windows XP.
Thanks!
Terrence
Summary of how to make files open on Macs and PCs
Thank you Northcode for the information about which files MUST be inside of the "fscommand" folder on a CD-ROM. Only the .exe files, .bat files and applescripts need to be in the fscommand folder. Use paths to get to specified folders on your CD-ROM in the .bat or applescripts.
In case anyone is curious to see how an Applescript is used in fscommand to open files, here is a sample Applescript (which I named: "M001pdf_script" - which will open a pdf file in Acrobat Reader called: "M001.pdf")
======================
tell application "Finder"
activate
select file "M001.pdf" of folder "PDF" of disk "Media Kit 2004"
open selection
end tell
=======================
Here is how we call the Applescript using fscommand applied to a button action:
===========================
on (release) {
fscommand ("exec", "M001pdf_script");
}
===========================
The Applescript file - which is created on a Mac using Script Editor - must be saved as an Application File (option off: stay open; option on: keep window closed). As far as I know. applescripts cannot be written on a PC. However, .bat files can be written on a Mac. Make sure you have a friend with a Mac if you wish to make dual platform CD-ROMs that are being designed on a PC.
It works on Macs just like the PC counterpart that uses the "proxy.exe" file from Northcode to run the file: "proxy.bat." (simply rename the "proxy.exe" and "proxy.bat" files to reference the target file you wish to open when a button is pressed). According to Northcode, "proxy.exe" will open the .bat file of the same name, ie: "proxy.bat." just change the name of the .exe and the .bat files to match one another and it will open files and avoid the DOS command screen.
My "proxie.bat" file reads as follows:
=============
START M001.pdf
=============
That's all there is to it!!!! The .bat file makes the "M001.pdf" file open in Acrobat Reader on PCs. Just write your own .bat file (on a Mac use BBedit and select the save as option for DOS; PC users can use Notepad).
Of course, this does mean you need to make a duplicate of your final approved MASTER Flash file (from this point on, if your client wants changes to the master design file, you need to update both the Mac and the PC versions of the files - yuck).
One needs to have PC fscommands to run .exe file to open .bat files to open target files (.pdf, .doc, .jpg, etc.) and the Mac side needs to have Mac fscommands to open Applescripts that open target files (.pdf, .doc, .jpg, .zip, .tif etc.).
This SIMPLE solution requires lots of duplication of the scripts and customizing them for specific target files. The time is well worth it to avoid using the CLUNKY "getURL" command to open files.
Once again, thank you Northcode for your amazing help on my CD-ROM project! You are the Flash KING!!!!!
Terrence
[email protected]
2desktop.exe - need assistance
Hey there Northcode,
I tried the 2desktop.exe utility to copy a file from my CD-ROM onto the desktop of the PC. I must have done something wrong - I can't get it to work.
I placed the file "2desktop.exe" in the fscommand folder on the CD-ROM.
I placed "2desktop.bat" in the fscommand folder on the CD-ROM.
The "2desktop.bat" file has this info in it:
=======
myfile.zip
=======
My button had this code on it:
on (release) {
fscommand("exec","2desktop.exe");
}
The target file: "myfile.zip" is in the fscommand folder with the 2desktop.exe and .bat files.
I published the Flash MX file to a PC projector and burned the CD which includes the projector, fscommand folder etc.
The CD autoplayed on the PC but when I pressed the appropriate button, the file did not copy onto the PC desktop.
Do you see anything in my set-up that is incorrect?
I'm also presuming I can rename the "2desktop.exe" and it's corresponding .bat file the same as I did for "proxy.exe" to copy different files to the desktop.
Thanks for your help.
Terrence
[email protected]
2desktop question for you
It's me again -
Northcode, you just turned "2desktop" into a MAJOR utility for copying files from a CD-ROM (projector) to the PC users desktop!!!!
This is how I set it up:
I used "proxy.exe" and changed the name to "getfile01.exe"
I created a .bat file and I named it "getfile01.bat"
(this procedure avoids the DOS screen from popping up)
.bat file has this text on it:
===================
2desktop myfile01.jpeg message / myfile has been saved to your desktop / My CD-ROM File Manager
In Flash, the button has this code:
==========================
{on (release) {
fscommand("exec","getfile01.exe");
}
I published the Flash projector. When the button is pressed, a message window popped up to announce that the designated file was saved to the desktop!
PERFECT!!!!
==========
Thank you Northcode! You are my HERO!!!!!
==================================