• 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: Don't understand timeout
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Don't understand timeout


  • Subject: Re: Don't understand timeout
  • From: Alex Zavatone <email@hidden>
  • Date: Thu, 18 Aug 2011 17:56:31 +0000 (GMT)

 

on IdentifyEmptyLayers(myDoc)

tell application "Adobe Illustrator"

  set myLayerNumbers to the number of every layer of myDoc

  set myEmptyLayerNumbers to {}

  repeat with myLayerIndex from 1 to myLayerNumbers

   

   -- get the number of page items in each layer 

   set errorOccurred to false

   set myTaskMsg to "get the number of page items in layer " & myLayerIndex & ""

   set myFailureMsg to "could not " & myTaskMsg

   try

    set myPageItems to count every page item in layer myLayerIndex of myDoc

   on error errMsg number errNum

    set errorOccurred to true

   end try

   tell me to UpdateActivityStatus(myTaskMsg, errorOccurred, "bail", myFailureMsg)

   

   if myPageItems = 0 then

    set the end of myEmptyLayerNumbers to myLayerIndex

    set myLayerName to the name of layer myLayerIndex of myDoc

    display dialog myLayerName

   end if

  end repeat

end tell

return myEmptyLayerNumbers

end IdentifyEmptyLayers


Cheers.

 _______________________________________________
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

References: 
 >Don't understand timeout (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Don't understand timeout
  • Next by Date: Re: Don't understand timeout
  • Previous by thread: Re: Don't understand timeout
  • Next by thread: Re: Don't understand timeout
  • Index(es):
    • Date
    • Thread