Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

HyperCard Clipboard in order to Copy/Paste with other app..

 
   Macintosh computer (Home) -> Hypercard RSS
Next:  [31] Materiel Occasion?  
Author Message
Sylvain Bouju

External


Since: Mar 27, 2005
Posts: 9



(Msg. 1) Posted: Fri Sep 01, 2006 11:31 am
Post subject: HyperCard Clipboard in order to Copy/Paste with other application
Archived from groups: comp>sys>mac>hypercard (more info?)

What is the nicer way to do things like that:

get word 3 of line 1 of myFirstVariable
put it into the clipboard <------???

get text of the clipboard <-----???
put return & it after mySecondVariable

I prefer not to do it via fields in Hypercard
(select, doMenu, etc.) or via text files in the OS,
but a XFCN would be fine, if there is no way to
Hypertalk it.

--
Sylvain Bouju
--

 >> Stay informed about: HyperCard Clipboard in order to Copy/Paste with other app.. 
Back to top
Login to vote
Mark Schonewille3

External


Since: Jun 20, 2004
Posts: 40



(Msg. 2) Posted: Sat Sep 02, 2006 2:52 pm
Post subject: Re: HyperCard Clipboard in order to Copy/Paste with other application [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Sylvain,

I am not sure that I understand you correctly. You are doing two
different things here, so why ask which one is nicer?

Additionally, you can't "get the text of the clipboard" in
HyperCard. You just "get the clipboard".

Maybe you could tell more about what you're trying to achieve
and why?

Best,

Mark


Sylvain Bouju wrote:
> What is the nicer way to do things like that:
>
> get word 3 of line 1 of myFirstVariable
> put it into the clipboard <------???
>
> get text of the clipboard <-----???
> put return & it after mySecondVariable
>
> I prefer not to do it via fields in Hypercard
> (select, doMenu, etc.) or via text files in the OS,
> but a XFCN would be fine, if there is no way to
> Hypertalk it.
>

--

Economy-x-Talk Consultancy and Software Engineering
http://www.economy-x-talk.com

eHUG coordinator
http://www.ehug.info

Salery is the easiest way to set up your web store:
http://www.salery.biz/salery.html

 >> Stay informed about: HyperCard Clipboard in order to Copy/Paste with other app.. 
Back to top
Login to vote
Sylvain Bouju

External


Since: Mar 27, 2005
Posts: 9



(Msg. 3) Posted: Sat Sep 02, 2006 4:00 pm
Post subject: Re: HyperCard Clipboard in order to Copy/Paste with other application [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mark Schonewille <nospam.DeleteThis@nospam.com> wrote:

> Maybe you could tell more about what you're trying
> to achieve...


Sorry in advance for my so poor english...;-)

I wanted to know if there is an Hypercard script
which can put directly text from a variable to the
clipboard, and then, opening for example SimpleText,
have this text in this other application just doing
a "Paste" in its menu.

And the reverse thing: having some text in the
clipbboard from SimpleText, an Hypercard script
which can paste it in a variable.

> ...and why?

Why? ;-)

--
Sylvain Bouju
--
 >> Stay informed about: HyperCard Clipboard in order to Copy/Paste with other app.. 
Back to top
Login to vote
Mark Schonewille3

External


Since: Jun 20, 2004
Posts: 40



(Msg. 4) Posted: Sun Sep 03, 2006 12:23 pm
Post subject: Re: HyperCard Clipboard in order to Copy/Paste with other application [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Because!

Seriously, if you tell me what you need it for, we'd might find
a better alternative for accomplishing the task.

Best,

Mark


Sylvain Bouju wrote:

>
>
> Why? ;-)
>

--

Economy-x-Talk Consultancy and Software Engineering
http://www.economy-x-talk.com

eHUG coordinator
http://www.ehug.info

Salery is the easiest way to set up your web store:
http://www.salery.biz/salery.html
 >> Stay informed about: HyperCard Clipboard in order to Copy/Paste with other app.. 
Back to top
Login to vote
Mark Schonewille3

External


Since: Jun 20, 2004
Posts: 40



(Msg. 5) Posted: Sun Sep 03, 2006 1:24 pm
Post subject: Re: HyperCard Clipboard in order to Copy/Paste with other application [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

SimpleText is not scriptable, but you might use other
applications such as AppleWorks.

-- paste from hypercard
put fld 1 into the clipboard
put "tell application" && quote & ¬
"AppleWorks" & quote && "to paste" ¬
into myScript
do myScript as AppleScript

-- copy to hypercard using
-- applescript
tell application "AppleWorks"
set myVar to the selection as text
end tell
set the clipboard to myVar
tell application "HyperCard"
do script "put \"" & myVar & "\" after ¬
the selection"
end tell

Now back to "why?". This script requires some text to be
selected in AppleWorks. You also will need to open a file in
that application. I don't know what you are trying to do, but
since you said you were using SimpleText it would be easier to
just open a file in HyperCard and pull the text out of it.

Best,

Mark


Sylvain Bouju wrote:
> Mark Schonewille <nospam.RemoveThis@nospam.com> wrote:
>
>
>>Maybe you could tell more about what you're trying
>>to achieve...
>
>
>
> Sorry in advance for my so poor english...;-)
>
> I wanted to know if there is an Hypercard script
> which can put directly text from a variable to the
> clipboard, and then, opening for example SimpleText,
> have this text in this other application just doing
> a "Paste" in its menu.
>
> And the reverse thing: having some text in the
> clipbboard from SimpleText, an Hypercard script
> which can paste it in a variable.
>
>
>>...and why?
>
>
> Why? ;-)
>

--

Economy-x-Talk Consultancy and Software Engineering
http://www.economy-x-talk.com

eHUG coordinator
http://www.ehug.info

Salery is the easiest way to set up your web store:
http://www.salery.biz/salery.html
 >> Stay informed about: HyperCard Clipboard in order to Copy/Paste with other app.. 
Back to top
Login to vote
Sylvain Bouju

External


Since: Mar 27, 2005
Posts: 9



(Msg. 6) Posted: Sun Sep 03, 2006 1:27 pm
Post subject: Re: HyperCard Clipboard in order to Copy/Paste with other application [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mark Schonewille <nospam.TakeThisOut@nospam.com> wrote:

> Seriously, if you tell me what you need it for, we'd might find
> a better alternative for accomplishing the task.

I have no particular need, at this time, really.
Just wanted to know if it is doable.

--
Sylvain Bouju
--
 >> Stay informed about: HyperCard Clipboard in order to Copy/Paste with other app.. 
Back to top
Login to vote
Sylvain Bouju

External


Since: Mar 27, 2005
Posts: 9



(Msg. 7) Posted: Sun Sep 03, 2006 2:23 pm
Post subject: Re: HyperCard Clipboard in order to Copy/Paste with other application [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mark Schonewille <nospam.DeleteThis@nospam.com> wrote:

> I don't know what you are trying to do, but

Imagine a very complex calculation in Hypercard,
ending in a large tabulated text in a variable, that
I plan to paste in Excel.

Can I just put this result as text in the clipboard ,
eventually with the help of a XCMD, but not using
another application, or script, or field, or text file?

No problem once Excel launched: doing a "Paste"
or "Paste special" in its menu would be just fine.


--
Sylvain Bouju
--
 >> Stay informed about: HyperCard Clipboard in order to Copy/Paste with other app.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
HyperCard@Paris 2003 - Dear HyperCard Users, The European HyperCard User Group will participate in the Apple Expo Paris 2003. This time, we will participate as a real user group. This means that we are present at the Apple User Groups booth from 16th till 20th September 2003....

HyperCard Question... - I have old Macintosh Plus computer with a "HyperCard" (I believe). I can run the software for it, but till what version does it work up to?

Can this HyperCard be saved? - Hi all, Many many years ago, I used to do quite a lot of things with HyperCard. Most notably, I created a chequebook balancing stack that, with the help of my treasured old copy of HC, I still use today! So when I discovered a complete, boxed copy of..

Transfer from Hypercard ? - I have been using Hypercard for 20 years to log documents etc for archival purposes. Is there anyway of transferring this data base to a PC application ? -- Gunther Abrahamson aa994@ncf.ca

To hypercard programers. - I see a programing for $ opportunity. Not mega bucks, but a neiche market. Hewlett Packard produce graphing calculators - expensive top of the line - that connect to PC's so that one can upgrade software ROM, store files, etc. The latest release HP49+..
   Macintosh computer (Home) -> Hypercard All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]