Skip to content. | Skip to navigation

FreeSMUG

Sections
Personal tools
You are here: Home Forums OS X Portable Apps How to Open Portable Apps in Foreground?
Navigation
Log in


Forgot your password?
New user?
active users
Registered: 647
Online: 0

IRC Chat


irc.freenode.net : #freesmug
 
Document Actions

How to Open Portable Apps in Foreground?

Up to OS X Portable Apps

How to Open Portable Apps in Foreground?

Posted by Cyrill Pfister at November 24. 2007
I have to distribute a html-presentation, saved on USB-Stick and need the Portable Firefox to start in Foreground (doubleclick on "OPEN Portable Firefox OSX.app").
Any Ideas how to change the Startup Script?
Actually all Portable Apps starts in Background (don't know why anyhow).

Re: How to Open Portable Apps in Foreground?

Posted by Gand at November 24. 2007
"OPEN Portable Firefox OSX.app" is an old AppleScript version. Try new one, although apps open on background as are opened by a shell script launched by portable app launcher that run in backgraound, this is to avoid double icons on dock and undue scrip quit before application one.

Anyway try to set LSUIElement key to False on Info.plist file (or LSBackgroundOnly key to flase with old AppleScript), but I tink that this will not solve your problem.

Re: How to Open Portable Apps in Foreground?

Posted by Cyrill Pfister at November 25. 2007
Hello Gand

Setting the LSUIElement to false only make Script-Icon visible in Dock, nothing else.
I've tried this allready before.

Still need older Firefox 1.5.. for compatibility reasons to OS X 10.3.

Maybe to set Firefox "active" with Applescript?
Big problem: how to make script wait for Firefox Application loaded.
Tried many different ideas (http://bbs.applescript.net) without success :(

Re: How to Open Portable Apps in Foreground?

Posted by Gand at November 25. 2007
Shell has "sleep seconds" to wait for an amount of time.

Re: How to Open Portable Apps in Foreground?

Posted by Cyrill Pfister at November 26. 2007

Previously Gand wrote:

Shell has "sleep seconds" to wait for an amount of time.



yes shure, but loading times differs on every computer model. Specially on USB1 Connections. Therefore i need a script that trigger after loading the first html-page.
Powered by Ploneboard

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: