我使用applescript Finder的菜單來顯示剪貼板。 我想知道其他東西或方式來顯示剪貼板。謝謝您的回答。如何使用Applescript顯示剪貼板
tell application "System Events" to tell process "Finder"
set frontmost to true
click menu item "show Clipboard" of menu "Edit" of menu bar 1
end tell
我使用applescript Finder的菜單來顯示剪貼板。 我想知道其他東西或方式來顯示剪貼板。謝謝您的回答。如何使用Applescript顯示剪貼板
tell application "System Events" to tell process "Finder"
set frontmost to true
click menu item "show Clipboard" of menu "Edit" of menu bar 1
end tell
如果剪貼板文本,你可以在一個AppleScript對話框中顯示其內容:
try
display dialog (get the clipboard)
on error
display dialog "The clipboard is not text."
end try
這將涉及展示的窗口。你是怎麼想這樣做的?換句話說:如何做到這一點? – matt