| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
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: http://lists.apple.com/mailman/options/applescript-users/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.