Skip to main content
added 313 characters in body
Source Link
John
  • 1.3k
  • 1
  • 11
  • 32

I did seeEDIT: It seems that piping the results to this but with my limited knowledgepbcopy, while working in terminal, was unablean issue when called from AppleScript.

I changed the AppleScript to decipher:

do shell script "pbpaste | gsed 's/\\x2D/\\xE2\\x96\\xB8/g'; pbcopy" 

?? The results show up inside the AppleScript Result window, but this clears the Clipboard... Does anyone know why AppleScript is clearing the clipboard when using pbcopy in a do shell script command?

I did see this but with my limited knowledge was unable to decipher.

EDIT: It seems that piping the results to pbcopy, while working in terminal, was an issue when called from AppleScript.

I changed the AppleScript to:

do shell script "pbpaste | gsed 's/\\x2D/\\xE2\\x96\\xB8/g'; pbcopy" 

?? The results show up inside the AppleScript Result window, but this clears the Clipboard... Does anyone know why AppleScript is clearing the clipboard when using pbcopy in a do shell script command?

deleted 130 characters in body
Source Link
user3439894
  • 60.8k
  • 10
  • 115
  • 138

Example content of the clipboard:

# 6C (d1/s2): F 11-12 100 Fly (1:12.95Y)

The terminal command:

I did see this but with my limited knowledge was unable to decipher

EDIT for user3439894.

Mon Feb 22 12:51:52 iMac191:~ john$ tmp=(pbpaste) tmp=(pbpaste) Mon Feb 22 12:52:08 iMac191:~ john$ $tmp $tmp # 6C (d1/s2): F 11-12 100 Fly (1:12.95Y) Mon Feb 22 12:52:15 

The terminal command:

I did see this but with my limited knowledge was unable to decipher

EDIT for user3439894

Mon Feb 22 12:51:52 iMac191:~ john$ tmp=(pbpaste) tmp=(pbpaste) Mon Feb 22 12:52:08 iMac191:~ john$ $tmp $tmp # 6C (d1/s2): F 11-12 100 Fly (1:12.95Y) Mon Feb 22 12:52:15 

Example content of the clipboard:

# 6C (d1/s2): F 11-12 100 Fly (1:12.95Y)

The terminal command:

I did see this but with my limited knowledge was unable to decipher.

EDIT to add requested info
Source Link
John
  • 1.3k
  • 1
  • 11
  • 32

EDIT for user3439894

Mon Feb 22 12:51:52 iMac191:~ john$ tmp=(pbpaste) tmp=(pbpaste) Mon Feb 22 12:52:08 iMac191:~ john$ $tmp $tmp # 6C (d1/s2): F 11-12 100 Fly (1:12.95Y) Mon Feb 22 12:52:15 

EDIT for user3439894

Mon Feb 22 12:51:52 iMac191:~ john$ tmp=(pbpaste) tmp=(pbpaste) Mon Feb 22 12:52:08 iMac191:~ john$ $tmp $tmp # 6C (d1/s2): F 11-12 100 Fly (1:12.95Y) Mon Feb 22 12:52:15 
added 1189 characters in body
Source Link
John
  • 1.3k
  • 1
  • 11
  • 32
Loading
added 241 characters in body
Source Link
John
  • 1.3k
  • 1
  • 11
  • 32
Loading
Source Link
John
  • 1.3k
  • 1
  • 11
  • 32
Loading