Script to open BBedit file
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