Google Groups Home
Help | Sign in
AppleScript 'do shell script' attend qqc...
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Une Bévue  
View profile
 More options Apr 8, 2:46 am
Newsgroups: fr.comp.sys.mac.programmation
From: unbewusst.s...@weltanschauung.com.invalid (Une Bévue)
Date: Tue, 8 Apr 2008 08:46:43 +0200
Local: Tues, Apr 8 2008 2:46 am
Subject: AppleScript 'do shell script' attend qqc...

J'ai une AppleScript, sans doute trop "bêbête" :

do shell script "/Applications/Firefox2.app/Contents/MacOS/firefox -P
toto &"

il me sert à lancer une deuxième version de Firefox sous un autre nom
que le nom par défaut.

mais, le script sauvegardé comme une application, ne quit pas après sa
tâche, je dois faire un "forcer à quitter", ceci même si j'enrobe le do
shell script avec on run / end run

que faut-il faire (à la sauvegarde?) pour que ce script quitte après
avoir lancé Firefox ?
--
Une Bévue


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jayce Piel  
View profile
 More options Apr 8, 5:21 am
Newsgroups: fr.comp.sys.mac.programmation
From: ja...@mosx.org (Jayce Piel)
Date: Tue, 8 Apr 2008 11:21:51 +0200
Local: Tues, Apr 8 2008 5:21 am
Subject: Re: AppleScript 'do shell script' attend qqc...

Une Bévue <unbewusst.s...@weltanschauung.com.invalid> wrote:
> J'ai une AppleScript, sans doute trop "bêbête" :

> do shell script "/Applications/Firefox2.app/Contents/MacOS/firefox -P
> toto &"

> il me sert à lancer une deuxième version de Firefox sous un autre nom
> que le nom par défaut.

> mais, le script sauvegardé comme une application, ne quit pas après sa
> tâche, je dois faire un "forcer à quitter", ceci même si j'enrobe le do
> shell script avec on run / end run

> que faut-il faire (à la sauvegarde?) pour que ce script quitte après
> avoir lancé Firefox ?

Peut-être utiliser un "with timeout=0" ou un truc du genre...

--
            Jayce Piel   ( jayce <@> mosx.org )
 *********  MosX.org <http://www.mosx.org/> *********
      (MosX.net renaît sous le nom MosX.org...)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Une Bévue  
View profile
 More options Apr 8, 10:39 am
Newsgroups: fr.comp.sys.mac.programmation
From: unbewusst.s...@weltanschauung.com.invalid (Une Bévue)
Date: Tue, 8 Apr 2008 16:39:14 +0200
Local: Tues, Apr 8 2008 10:39 am
Subject: Re: AppleScript 'do shell script' attend qqc...

Jayce Piel <ja...@mosx.org> wrote:

> Peut-être utiliser un "with timeout=0" ou un truc du genre...

Non, c'est pas ça, en fait, j'ai mal "détaché"* il faut faire :

do shell script "/Applications/Firefox2.app/Contents/MacOS/firefox -P
toto -no-remote </dev/null >/dev/null 2>&1 &"

(réponse donnée sur le groupe AppleScript Studio)

amha, le "-no-remote" n'est pas indispensable dans mon cas où je
souhaite lancer une autre version de Firefox (test pages web).

* il faut >aussi< détacher de stdin, me dit on ;-)

--
Une Bévue


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google