View Full Version : fscommand "quit" NOT WORKING
Hi Have a projector on Cd using slides [mx pro 2004] see full story http://www.actionscript.org/forums/showthread.php3?p=332855&posted=1#post332855
but when i use FsCommand "quit" ON MAC the projector closes but the Cd wont eject...says an application is still in use.
There is nothing to "force quit'...so cant do that.
mac os 10.2.8 seems to open sometimes but 10.3.8 seems locked
I end up haveing to shut down to get the CD out .
I have tried this with many differnt configurations with about 20 burnt CDs...some on PC using Amc Image, and some burnt on Mac...same problem..a.[mong others]
Anyone else come across this.
Ive done many projectors for mac but never had this issue before.
Maybe its the "slides" presentation???? as ive never used that before on a mac compatible Cdrom????
Please help!
Maak
Bosworth
04-05-2005, 06:42 AM
hmm - working on a similar project - and have never experienced anything like that...
don't know what slides presentation you are referring to - soo... that may be the issue
ill tell you my set up -
i am using a "shell" swf at _level0 to load up multiple other swfs at several other levels... my quit button is on _level10 or something - and i think (its at work - so i'd have to look at it again to be sure) i just use a straightforward fscommand("quit") to close the app...
but seems like something is left running on your machine... very odd.
don't know if that helps :(
b([])X
ok
more testing on the mac shows it to be the applescript that is causing the quit to not work.
It will quit if I have not clicked on any of thebuttons to open the pdf's and power points...which dont work anyway :rolleyes:
it must be 'trying' to run the script.
the applescript used is:
tell application "Finder"
activate
select file "vfend.ppt" of folder "fscommand" of disk "vfend"
open selection
end tell
this is saved as a Run Only application and the file is called "vfendppt"
The actionscript is:
on(release) {
fscommand("exec", "vfendppt.app");
}
I have also tried this as actionscript:
on(release) {
fscommand("exec", "vfendppt");
}
[this is the on that USED to work for me.]
Should I be saving the applescript with a ".app" extention on the end???
I have tried both..but which is right.
if i run the script when writing it..it will work. and open the correct file on a CD.
How can i checK the saved script.?
Double clicking it does not seem to work...should it?
Maak
Bosworth
04-05-2005, 07:21 AM
yeah - write your applescript - and then save as a compiled app file.
I used the .app extension and it has worked for me (i have over 150 pdfs that i am opening - bat files for pc and app files for mac).
"looks" like it should work -
and it would make sense that if your script was still running it would cause the mac to think it was an active file - thus not being able to eject...
so - are you still having problems w/it?
i must go to bed now - i'll check back when i get to work tomorrow AM
cheers
b([])x
Thanks Bosworth.
Ill try it again makinf sure to save as run only application WITH .app extention.
Everyone else has left for home here [NZ]..ill have to stay and sort this out..[like last night]
Cheers
Maak bow
well finally it works...duno why.
I'm making it on the os 10.3.8 MAc now..amybe thats the difference.
And the saved script works from the desctop and on the CD... only issue is it leaves two open finder windows on top of the projector.
I read something about that here so ill check it out and report back.
But of course now something else is wrong..the projector all of a sudden cant play the first few bits of audio which are really imortant.
On the PC version its still sweet
Maak
Bosworth
04-05-2005, 04:17 PM
only issue is it leaves two open finder windows on top of the projector.
yeah - i don't think theres any way arround that one...
I'm using bat files on the pc = they simply tell windows to open a pdf with acrobat - but that big ugly command prompt pops up to do so. and then - yes, acrobat opens up on top of the projector. Has to be that way - since that is the app im using to view pdfs and im running the project in full screen mode. hope it doesn't cause problems on the users end. and mac is worse - since it opens two finder windows before it opens the pdfs in acrobat....
i was just screwing arround with flash paper... if i had know of that earlier looks like i could have avoided acrobat altogether.
sigh...
Don't know about the audio issue...
good luck
b([])x
I use Flash Jestors "J Start" app which makes an alternative to the .bat files for you....and you dont get the comand promt...its a cheap app too.
you end up with a .exe file and a .ini file in the fscomand folder...if you dont look in there [a little messy] it is a nice solution.
The close window applescript does get rid of the 2 finder windows on Mac..but in OS x with that crqazy animation going on its a little distracting. [they fly in and squash out]
Maak
Bosworth
04-05-2005, 04:59 PM
j Start huh?
wish i had known about that earlier ;)
oh well - too late to change now...
[they fly in and squash out]
i kind of hate that crap. it was cool at first - but is now only annoying... and that little pinwheel they use for a timer - damn.... evil thoughts when your app is crashing and that dippy little thing is just spinning there....
btw - nice avatar. you look pissed o.0 kind of related to mine, no?
b([])x
toddersbud
05-07-2005, 07:39 AM
Hey everyone. New to the AS.org forums. One question somewhat related and somewhat not. I am creating something similar to at least you Bosworth. I am making a CD with a main wrapper .swf that loads in multiple movies. Is there some Mac software you use or know of to wrap all external files into a projector, so that when the user inserts a cd they don't see the external .swfs and images being loaded? or do you use a pc app? or nothing, and just have those files on the cd as well. Thanks to anyone who has any input.
:: todd
Bosworth
05-10-2005, 05:38 PM
i am just holding the 25+ swfs in a separate folder that is on the disk (hidden).
the main reason you would not want to "wrap" all your swfs into one file is because you would then be loading each piece as one file. breaking a swf into multiple pieces cuts down on load times and is generally good. also - MM says that you should keep your swfs uder 4 megs.
good luck
b([])x
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.