Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

rebello95

macrumors member
Original poster
Jun 15, 2011
40
0
USA
I've tried using

set the clipboard to "xxx"

but that doesn't work. Ideas? Thanks!
 
Works for me: OS 10.6.8.

Typed it into AppleScript Editor, told it to Run.
Confirmed it worked using 'pbpaste' command in Terminal.


What is your OS version?

How do you know it doesn't work? I.e. describe the steps you took and what you observed that lead you to conclude it doesn't work.
 
I'm running on 10.7.2 right now. I ran the application then tried using command + v to test it.
 
I ran the application then tried using command + v to test it.

It worked for me. Pasted it into TextEdit and into Terminal.


Try opening a new window in AppleScript Editor.
Enter this script:
Code:
get the clipboard
Click Run.
Post the result.
If there's no result, say "There's no result".

Select the entire text of the script.
Choose Copy from Edit menu.
Click Run.
Does the Result show "get the clipboard"?


Also, you need to explain exactly what "I ran the application" means.

I'm not "running an application" when I do these tests. I'm simply using AppleScript Editor, and telling it to Run a script I've typed in. It's not an application yet. It's just a piece of script.

If you're using AppleScript Editor, you need to identify that. If you're using something else, identify that. "I ran the application" is too vague. Be specific.
 
When I try that, it crashes. I have 4GB of RAM in my MacBook so that's not the problem...
 
Have you done this?
From Standard Additions Dictionary:
set the clipboard to v : Place data on an application’s clipboard. Use inside a ‘tell’ block and activate the application first
set the clipboard to any : the data to place on the clipboard
Well behaved Apps don't usually need the tell block.
Less well behaved ones may.
Try this:
Code:
tell application "Minecraft"
	set the clipboard to "Funky Cold Medina"
end tell
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.