• 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: Quitting an applet?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quitting an applet?


  • Subject: Re: Quitting an applet?
  • From: "Geoff Graham" <email@hidden>
  • Date: Thu, 30 Nov 2000 08:52:19 -0600

At 10:09 PM -0800 11/29/00, Rob Jorgensen <email@hidden> wrote:
>Sorry, I can't offer any suggestions because I'm having a similar
>problem with the following script (droplet):
>
>For the record, /r = continuation character
>
>-------------------------------------------
>
>on open fileList
>
> set itemCount to count items in fileList
>
> tell application "Finder"
> open file "Screenshots.sit" of disk "Win 95"
> end tell
>
> tell application "StuffIt Deluxe"
> repeat with i from 1 to itemCount
> stuff alias i of fileList into archive item /r
> "Screenshots" of archive "Screenshots.sit" /r
> compression level maximum
> end repeat
> quit
> end tell
>
>end open
>
>-------------------------------------------
>
>This script will stuff the first item in fileList and then just quit
>doing anything, with StuffIt Deluxe remaining the frontmost
>application. If I activate the script again via the Application Menu,
>it finishes executing as written and quits. The weird thing is that
>when it is activated this way, StuffIt Deluxe does not come to the
>front again, even though it is still finishing its tasks.
>
>Any ideas why the script is losing control of things? Any ideas on
>how to fix it?

fileList is a list, so you want to use *item* i and not alias i. Also the "into archive item "Screenshots" just doesn't sound right, but I don't have SD. try dropping the item in that one eg:

stuff item i of fileList into archive "Screenshots"...

or use Stuffit Commands scripting addition to do it and not Deluxe.

I must be behind and missed something, but a script should quit on Command-period, unless it's stuck in a repeat, and then Command-Shift-Q should do it.

Geoff


  • Follow-Ups:
    • Re: Quitting an applet?
      • From: Rob Jorgensen <email@hidden>
  • Prev by Date: Re: Image dimensions
  • Next by Date: Re: Quitting an applet?
  • Previous by thread: Re: Quitting an applet?
  • Next by thread: Re: Quitting an applet?
  • Index(es):
    • Date
    • Thread