• 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
BBEdit question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BBEdit question...


  • Subject: BBEdit question...
  • From: David Crowe <email@hidden>
  • Date: Sun, 29 Oct 2006 10:21:25 -0600

Title: BBEdit question...
Does anybody know how to make a BBEdit document become the frontmost/selected document in its window?

The following code brings a specific window to the front, but this window may have multiple documents and the last line does nothing (not even generate an error).


tell application "FileMaker Pro Advanced" to tell document "Presentations" to tell window "Presentations" to tell layout "Entry"
       
set {EntryText, EntryTextType, SlideID} to {cell "EntryText", cell "EntryTextType", cell "SlideID"} of current record
end tell

set DocumentTitle to "Presentation " & SlideID
tell application "BBEdit"
   
try
            
set theCurrentDocument to first document whose name = DocumentTitle
    
on error -- No document with this title exists
         
try
                    
set theCurrentDocument to make new document with properties {text:EntryText, name:DocumentTitle}
               
on error errmsg number errnum
                  
display dialog "Error creating new BBEdit window" & return & errmsg
                    
return
         
end try
end try

       
tell window of theCurrentDocument to activate
  
tell theCurrentDocument to activate -- does nothing
end tell

- David Crowe
 _______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: BBEdit question...
      • From: kai <email@hidden>
  • Prev by Date: Re: Prevent Canceling (Stockly, Ed)
  • Next by Date: Re: Applescript to trap when I insert my ipod?
  • Previous by thread: Re: Prevent Canceling (Stockly, Ed)
  • Next by thread: Re: BBEdit question...
  • Index(es):
    • Date
    • Thread