I get this:  (MacOS Error code: -1753)

On Mar 2, 1:21 pm, Bill Hernandez <[email protected]> wrote:
> On Mar 2, 2009, at 1:07 PM, mistergoomba wrote:
>
> > Can we copy paths for all open documents?
>
> This script will do it...
>
> -- filename : get_every_document_path.scpt
> on run
>         set RunCmd to "echo $(date +\\[%Y.%m.%d\\]\\(%I.%M.%p\\))"
>         set time_stamp to do shell script RunCmd
>         set w_name to "Window_Paths_" & time_stamp
>
>         tell application "BBEdit"
>                 activate
>                 set aDocuments to every text document
>                 set saved to ""
>                 set unsaved to ""
>                 repeat with thisDoc in aDocuments
>                         set w_props to properties of thisDoc
>                         try
>                                 set saved to (saved & POSIX path of (file of 
> w_props) as string) &  
> return
>                         on error
>                                 set unsaved to unsaved & name of w_props & 
> return
>                         end try
>                 end repeat
>
>                 set divider to  
> "----------------------------------------------------" & return
>                 set allDocs to divider
>                 set allDocs to allDocs & "Saved Documents : " & time_stamp & 
> return
>                 set allDocs to allDocs & divider
>                 set allDocs to allDocs & saved & return
>
>                 set allDocs to allDocs & divider
>                 set allDocs to allDocs & "UnSaved Documents : " & time_stamp 
> & return
>                 set allDocs to allDocs & divider
>                 set allDocs to allDocs & unsaved & return
>
>                 make new text document with properties {name:w_name,  
> contents:allDocs, bounds:{50, 50, 800, 800}}
>         end tell
>
> end run
>
> Best Regards,
>
> Bill Hernandez
> Plano, Texas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to "[email protected]" 
rather than posting to the group.
-~----------~----~----~----~------~----~------~--~---

Reply via email to