• 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
Script to open BBedit file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Script to open BBedit file


  • Subject: Script to open BBedit file
  • From: email@hidden
  • Date: Tue, 28 Jun 2005 23:21:30 EDT

The clipboard contains a the name of a file that I want to open in BBedit, convert, save and then open in MS Word.  I can record the actions in BBedit but I have to assign the contents of the clipboard to a variable(FILENAME) and use the variable in the open command as below.  I don't know how to use the variable in the open command with proper syntax.

tell application "BBEdit"
    activate
    make new text window
       set FILENAME to (the Clipboard)
      set FILEPATH to "G5 Office Server Drive:Upload to AMC:" & FILENAME
    open {FILEPATH} with LF translation
    zap gremlins text 1 of text window 1 zap action delete_gremlin with filter linefeeds, non ASCII characters and controls
    save text window 1
    close text window 1
    close text window 1
end tell

This returns an error message that "G5 Office Server Drive:Upload to AMC:123456HP.rtf"" does not understand the open message.

Can I open MS Word with Applescript?  If so I would like to be able to execute a macro I wrote in VisualBasic ... can this be done in Applescript?
Thank you for any help.
Douglas McKibbin
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Script to open BBedit file
      • From: Doug McNutt <email@hidden>
    • Re: Script to open BBedit file
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Path to User Icon
  • Next by Date: Re: Script to open BBedit file
  • Previous by thread: Re: Microsoft Word 2004 - Saving a document in a specified folder on a 2nd local disk or on a remote disk
  • Next by thread: Re: Script to open BBedit file
  • Index(es):
    • Date
    • Thread