a script for saving text from the clipboard to a file
a script for saving text from the clipboard to a file
- Subject: a script for saving text from the clipboard to a file
- From: Diane <email@hidden>
- Date: Mon, 27 Mar 2006 18:47:26 -0800
Hi,
I have been trying to send this message to the server since Thursday, so
I sincerely hope that it goes through and some wise Applescripter can
help me out.
I am a newbie trying to make an Applescript to attach to a FileMaker
button. I'm pretty stuck at this point. I have cobbled together a script
that runs in Script Editor but seems unacceptable to FileMaker, which
tells me "Expected end of line, etc. but found identifier." and will not
save my clumsy script (below).
I want this script to take text from the clipboard and append it to a
specified file. The text is copied from a web page, which presents
another problem. When I run the script (in Script Editor), the text it
writes to the file has a space between every character, l i k e t h i s
. Is there a way to convert the 'net text' to normal text?
In Mac OS 9, I used a program called "NetPrint" that was a fairly good
generic solution for this: creating a log recording database queries
returned to a webpage. I am trying to put together something to do that:
set clipboard_contents to the clipboard
set my_file to (choose file)
set file_info to info for my_file
set file_name to name of file_info
set the_path to ¬
"Macintosh HD:Users:circuit:Desktop:March06 ƒ:online reservations:" &
file_name as string
open for access alias the_path with write permission
write clipboard_contents to alias the_path starting at eof
close access alias the_path
When I try to "feed" this script to FileMaker, it highlights the mention
of "clipboard_contents" in the second to the last line and gives the
message: "Expected end of line, etc. but found identifier."
I don't understand why it runs in Script Editor but not FileMaker.
Thanks for any help or hints,
Diane
Diane Bryden <email@hidden>
_______________________________________________
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