• 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: Script expects quoted text mystery
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script expects quoted text mystery


  • Subject: Re: Script expects quoted text mystery
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 15 Jan 2004 21:46:14 +1100

On Jan 15, 2004, at 7:04 PM, Paul Berkowitz wrote:

It's not a good idea to nest one application block within another at the
best of times

Why (apart from readability)? I know this seems to be accepted wisdom, but when I run something like:

tell application "Finder"
name
tell application "InDesign CS"
name of document 1
end tell
end tell

The log says:

tell application "Finder"
get name
--> "Finder"
end tell
tell application "InDesign CS"
get name of document 1
--> "Untitled-18"
end tell

That suggests to me that AS is handling the situation fine. And I can't detect any performance issues. I even tried making the outer app unresponsive to events (leaving an open file dialog up) like so:

tell application "InDesign CS"
tell application "Finder"
name
end tell
end tell

And the call to the Finder worked fine.

--
Shane Stanley <email@hidden>
_______________________________________________
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.

  • Follow-Ups:
    • Re: Script expects quoted text mystery
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Script expects quoted text mystery (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: inheritance
  • Next by Date: Re: inheritance
  • Previous by thread: Re: Script expects quoted text mystery
  • Next by thread: Re: Script expects quoted text mystery
  • Index(es):
    • Date
    • Thread