• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Issue: Hiding terminal on app launch (Mayank Agarwal)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue: Hiding terminal on app launch (Mayank Agarwal)


  • Subject: Re: Issue: Hiding terminal on app launch (Mayank Agarwal)
  • From: Mayank Agarwal <email@hidden>
  • Date: Wed, 06 Jun 2012 22:29:28 +0530

Thanks for all the help, but  unfortunately it didn't work.
see i have created a package using package maker, inside package maker i am calling shell scripts.

so after installing the 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, 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 on application launch)

But i don't want it in the dock also, i want it to hide completely.



On Wed, Jun 6, 2012 at 9:48 PM, Doug McNutt <email@hidden> wrote:
At 21:10 +1000 6/6/12, Mr. Stetner Doug wrote:
>Mayank,
>
>I am going to be ticked off when your installer hides all my terminal windows!
>
>Do what Steve mentioned and use 'do shell script'

Be careful with do shell script.  Some users, like me, try to run everything as a subprocess of a terminal session.  The reason why is to preserve environment changes that are carried out in a shell initialization script.

environment.plist doesn't seem to be very stable with newer versions of OSX. For me that is about 10.4

Do shell script honors only the environment set by the system without any user sign on.

--

Applescript syntax is like English spelling:
Roughly, though not thoroughly, thought through.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Issue: Hiding terminal on app launch (Mayank Agarwal)
      • From: Emmanuel LEVY <email@hidden>
References: 
 >Re: Issue: Hiding terminal on app launch (Mayank Agarwal) (From: "Mr. Stetner Doug" <email@hidden>)

  • Prev by Date: Re: Issue: Hiding terminal on app launch (Mayank Agarwal)
  • Next by Date: Re: Issue: Hiding terminal on app launch (Mayank Agarwal)
  • Previous by thread: Re: Issue: Hiding terminal on app launch (Mayank Agarwal)
  • Next by thread: Re: Issue: Hiding terminal on app launch (Mayank Agarwal)
  • Index(es):
    • Date
    • Thread