Re: Issue: Hiding terminal on app launch
Re: Issue: Hiding terminal on app launch
- Subject: Re: Issue: Hiding terminal on app launch
- From: Mayank Agarwal <email@hidden>
- Date: Thu, 07 Jun 2012 09:44:05 +0530
Thanks for all the help, but I am already creating application bundle.see i have created a package using package maker, inside package maker i am calling shell scripts.
so after installing that package/application(flex application .dmg file + resources) i am creating an alias
on desktop. Now when i double click that icon it opens a terminal window then my application. According
to my understanding this terminal is executing my application. So, i want to completely hide this terminal.
This terminal remains on desktop, but the following code is helping me to minimize it
tell application "Finder/System Events"
set visible of process "Terminal" to false
end tell
(My application is a flex application written in AS3, so i call this code from AS3 code
i.e after application launch)
But i don't want it in the dock also, i want it to hide completely.
On Tue, Jun 5, 2012 at 7:37 PM, Rustam Muginov
<email@hidden> wrote:
Its seems that you only compiled a "binary" but did not created application bundle.
Mac OS X GUI applications are not plain files, they are in fact folders (directories) with special structure.
You can right-click and application supplied with Mac OS X and choose "View package content" contextual menu to view bundle hierarchy.
You can read about bundles more at:
P.S. And please, do not use "all uppercase" phrases.
--
Sincerely,
Rustam Muginov
On Jun 5, 2012, at 4:41 AM, Mayank Agarwal wrote:
Hi Everyone,
I am facing this issue for long time, so i thought to post it here.
Problem: When I double click and launch my application a terminal window opens
every time and if I try to close the Terminal my application is also killed.
1. I have developed an application in Flex. Exported it to a .dmg file.
2. After that I used "Package Creator" to make a installer for my application.
3. Now, using this installer I install the application.
4. Icon is created on Desktop.
5. When i click this Icon to open my application a Terminal window launches,
and then my application.
So, I want to hide this terminal window.
I read somewhere that this terminal window is shown because "Mac binaries are set to be opened with the 'Terminal' program".
And it is like application is executing in that terminal, i.e Terminal is Parent process of application.
Requirement: When i launch my application the terminal window should not appear.
IS THERE ANY WAY TO ACHIEVE THIS, by shell script, apple script or any other way?
Thanks.
Mayank Agarwal
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden