Ask a Question related to Macromedia Director Lingo, Design and Development.
-
spdorsey webforumsuser@macromedia.com #1
Quicktime detection - referring to drive letters problem
Hello
After browsing the forum, I found a reference to a mediamacros.com script which detects quicktime and installs the latest version which is located on the CD ROM which contains the Director projector.
I have a CD/DVd ROM drive which shows up on my WinXP computer as Drives D and E. (I imagine that one is the CD ROM and one is the DVD ROM).
I have since learned that - keeping in windows traditions - there is no standard for which drive letter is used for the CD ROM. Since my script references a quicktime installer that is on the CD, how do I get the script to find the installer no matter what the drive letter is?
The script is below:
--Checks to see if QuickTime version 5.0
--or greater is installed on the user's machine.
--If no version or a version lower than 3.0 is found
--the QuickTime installer is launched and the projector quits.
--If the the QuickTime version is 3.0 or Higher
--the movie continues to the marker "Start"
on exitFrame
global qtversion
put quicktimeversion() into qtversion
if the quicktimePresent = 1 then
if qtversion < 5 then
open "QuickTimeInstaller.exe"
quit
else
go to movie "Start"
end if
else
open "QuickTimeInstaller.exe"
end if
end
Thanks,
-----------------------S
--------------------
Steve Dorsey
Dorsey Graphics
:: 3D
:: Animation
:: Web Design
:: Digital Media
[url]http://www.dorseygraphics.com[/url]
--------------------
spdorsey webforumsuser@macromedia.com Guest
-
problem with polish letters passing to database
hi. I have problem with polish letters like '?????????' passing from flex to CF script writing them to database . All I get is a string like... -
dancing letters problem
Hi, Does anyone have this problem: The Uppercase letter is hanging a bit over the footline compared to the rest of the smallcaseletters that... -
Quicktime detection in Director
Hi I have inserted a quicktime movie into a Director CD rom I have created, now I need a 'sniffer' detector of some kind, so I can tell the end user... -
strange quicktime detection/installation exit problem...
hey ho! this time i've got a weird problem: i've got a stub which starts a quicktime detection (qtcheck.dir). if a quicktime version below v.6... -
Server Drive Letters
exec master..xp_fixeddrives "Lynn Owens" <lowens@ssinews.com> wrote in message news:0b0e01c340ab$a3b3a2f0$a501280a@phx.gbl... -
Ned #2
Re: Quicktime detection - referring to drive letters problem
since your projector and dir movie is also on the cdrom, the first char of
"the moviePath" will give the drive letter, and more
say your cd is organised :
projector.exe
mainmovie.dxr
install\install_QT.exe
in your script you'll put
open (the moviePath & "\install\install_qt.exe")
hth
--
----------------
-- Ned
----------------------------------------
Bien faire et laisser braire
----------------------------------------
Ned Guest
-
spdorsey webforumsuser@macromedia.com #3
Launching external app in OSX
What about on a Mac?
I guess I'm making a separate projector for Mac and Windows, so I'll need to adjust my Quicktime Installation script so that it works with my .pkg file on the mac, and my .exe file in Win.
"Open" command works great on the PC to launch .exe. On the Mac, it will not launch the .pkg file or mount a .dmg.
Any ideas?
Thanks,
------------------Steve
--------------------
Steve Dorsey
Dorsey Graphics
:: 3D
:: Animation
:: Web Design
:: Digital Media
[url]http://www.dorseygraphics.com[/url]
--------------------
spdorsey webforumsuser@macromedia.com Guest
-
Ned #4
Re: Launching external app in OSX
you'll need to make another projector, but script can be the same. To open a
pkg file try FileXtra4 or BuddyAPI, both have a "FileOpen" function that
open files with the appropriate app'.
for the separtor, you can use
mySep = the last char in the moviePath
and therefore build all paths with it :
myInstaller = the moviePath & "install" & mySep
if the platform starts "Windows" then
myInstaller = myInstaller & "install_qt.exe"
else
myInstaller = myInstaller & "quickTime.pkg"
end if
open myInstaller
--
----------------
-- Ned
----------------------------------------
Bien faire et laisser braire
----------------------------------------
"spdorsey" <webforumsuser@macromedia.com> a écrit dans le message de
news:bqm4r2$r4j$1@forums.macromedia.com...
| What about on a Mac?
|
| I guess I'm making a separate projector for Mac and Windows, so I'll
need to adjust my Quicktime Installation script so that it works with my
..pkg file on the mac, and my .exe file in Win.
|
| "Open" command works great on the PC to launch .exe. On the Mac, it will
not launch the .pkg file or mount a .dmg.
|
| Any ideas?
|
| Thanks,
|
| ------------------Steve
|
| --------------------
|
| Steve Dorsey
| Dorsey Graphics
|
| :: 3D
| :: Animation
| :: Web Design
| :: Digital Media
|
| [url]http://www.dorseygraphics.com[/url]
|
| --------------------
Ned Guest
-
spdorsey webforumsuser@macromedia.com #5
Quicktime detection and installation - here's how I did it:
Thanks to all who posted.
Here's what I came up with - it involves separate scripts for the Mac projector and Windows projectors.
MACINTOSH:
On the Mac, I had to launch a file (not an application) to install Quicktime. It's called "QuickTime_OSX.pkg", and I got it by mounting the .img file which is downloaded when you get the standalone installer for Quicktime for OSX. I re-named it so that if people needed to navigate to in on the CD, they would recognize it by name.
The "Open" command was not working on the document, so I downloaded BuddyAPI (free from [url]http://www.mods.com.au[/url]). This did the trick.
I inserted the following script in the opening frame of the Director movie:
---------------------------------
on enterFrame
global qtversion
put quicktimeversion() into qtversion
if the quicktimePresent = 1 then
if qtversion < 6 then
beep
go "QT_alert_start" -- starts Director shutting down and launching the QT installer
else
go "view_reel?" -- Enters the Director movie for viewing
end if
else
go "QT_alert_start" -- starts Director shutting down and launching the QT installer
end if
end
---------------------------------
Then, I placed a dialog box at the end of the Director movie (at the "QT_alert_start" marker) which verifies that they wish to install quicktime. If the user clicks "Yes", then the following script runs:
---------------------------------
on mouseUp
set OK = baOpenFile( the pathName & "QuickTime Installers:QuickTime_OSX.pkg" , "maximised" )
quit
end
---------------------------------
The "baOpenFile" command is part of buddyAPI. It is important to see that the directory path to the installer is both local (from the location of the Director movie), and delimited with colons, not slashes. OSX delimits with slashes, but apparently BuddyAPI - since it was created back in the OS9 days, still uses colons to separate names in a directory path (that really confused me at first).
At that point, I burned the Projector to a CDRW and it worked! Weeeeee!!!!
WINDOWS:
Windows did not require me to use BuddyAPI. The "Open" command in Windows applies to .exe files, and since the Quicktime standalone installer is an .exe file, everything worked out great.
My opening script went like this:
---------------------------------
on enterFrame
global qtversion
put quicktimeversion() into qtversion
if the quicktimePresent = 1 then
if qtversion < 6 then
go "QT_alert_start" -- starts Director shutting down and launching the QT installer
quit
else
go "view_reel?" -- Enters the Director movie for viewing
end if
else
go "QT_alert_start" -- starts Director shutting down and launching the QT installer
quit
end if
end
---------------------------------
Then, I placed a dialog box at the end of the Director movie (at the "QT_alert_start" marker) which verifies that they wish to install quicktime. If the user clicks "Yes", then the following script runs:
---------------------------------
on mouseUp
open "QuickTime Installers\QuickTimeFullInstaller.exe"
quit
end
---------------------------------
These scripts did the trick. I downloaded the standalone Quicktime installers (remember that you must be licensed to distribute them), and I placed them inside the "Quicktime Installers" directory which is on the root level of the CD ROM.
I hope this helps someone!
-----------------------Steve
--------------------
Steve Dorsey
Dorsey Graphics
:: 3D
:: Animation
:: Web Design
:: Digital Media
[url]http://www.dorseygraphics.com[/url]
--------------------
spdorsey webforumsuser@macromedia.com Guest



Reply With Quote

