• 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: Shutdown script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shutdown script


  • Subject: Re: Shutdown script
  • From: Bernard Azancot <email@hidden>
  • Date: Tue, 18 May 2004 18:49:09 +0200

Le 17 mai 04, ` 23:22, email@hidden a icrit :

Message: 5
Date: Mon, 17 May 2004 03:37:03 -0400
From: Graff <email@hidden>
Subject:
To: AppleScript List <email@hidden>

Hmm, it works fine for me.

Try this version:
<http://developer.apple.com/documentation/MacOSX/Conceptual/
BPSystemStartup/Tasks/CustomLogin.html>

I am just a newbie. Impossible to access this page for non members.
Dead end.

The "#!/bin/sh..." is a shell script that the login hook would call
when a user logs out. In the shell script you can place your
AppleScript, running the AppleScript through the shell tool osascript.
To run an AppleScript with osascript you can pass each line to the
command through the -e flag. So this shell script:
----
#!/bin/sh

/usr/bin/osascript -e 'tell application "Finder"' \
-e 'display dialog "script ran"' \
-e 'end tell'
----

The backslashes are there to indicate to the shell that the command is
continued on the next line. This shell script runs the AppleScript:
----
tell application "Finder"
display dialog "script ran"
end tell'
----

Obviously you would want to use a different AppleScript script that
would do a backup.

- Ken

I think this is a bit too much for me.
Thanks anyway, Ken.
Maybe in another life... I'll try anyway. Promissed. ;-)

Yours
Bernard
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Q: echo | sed -- Solved!
  • Next by Date: Re: Q: echo | sed -- Solved!
  • Previous by thread: Re: Shutdown script
  • Next by thread: Re: Shutdown script
  • Index(es):
    • Date
    • Thread