• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Unquote a variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unquote a variable


  • Subject: Unquote a variable
  • From: Robert Poland <email@hidden>
  • Date: Sun, 2 Oct 2005 10:55:13 -0600

Hi,

I have created a large text variable with CR's and Tab's included that I wish to paste into an Excel (X) spreadsheet. Excel won't accept the Quoted form and I can't seem to figure out how to remove the quotes.

Looks like even if I get past that Excel can't deal with copy/paste.

End goal; paste data into new spreadsheet. Some of the code (and errors) attempts below.

set outputData to "lkgaeroodigfdjlcvodfoifvov"
tell application "Microsoft Excel"
Activate
delay 1
«event misccopy» outputData -- copy outputData gets rewritten
copy outputData to Clipboard -- can't set clipboard to "lkgaeroodigfdjlcvodfoifvov"
Select Worksheet "Sheet2"
Clear Cell "R1C1:R100C100"
Select Cell "R1C1"
CopyObject outputData -- Microsoft Excel got an error "lkgaeroodigfdjlcvodfoifvov" Doesn't understand the CopyObject message.
Paste outputData
end tell


I hope this isn't another thing that Excel X can't do.

Tia,
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
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


  • Follow-Ups:
    • Re: Unquote a variable
      • From: Michael Ghilissen <email@hidden>
  • Prev by Date: Re: scripting Apple Mail.app
  • Next by Date: Re: TIDs, speed, (Unicode) text
  • Previous by thread: Re: I wish Apple would follow its own advice
  • Next by thread: Re: Unquote a variable
  • Index(es):
    • Date
    • Thread