Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Re: Open Application with Text (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Beginner: About Printing
Next thread: Scrolling a Canvas


Quicktime tracks / layers   -   Derek Seabrooke - CSCI/P2001
  Re: Open Application with Text   -   Carl Adler
   Re: Open Application with Text   -   Will Leshner
    Re: Open Application with Text   -   Carl Adler
    Open Application with Text   -   Carl Adler
     Re: Open Application with Text   -   Seth Willits
     Re: Open Application with Text   -   Frank Bitterlich
      Re: Open Application with Text   -   Seth Willits
       Re: Open Application with Text   -   Noah Desch
        Re: Open Application with Text   -   Seth Willits
         Re: Open Application with Text   -   Charles Yeomans
          Re: Open Application with Text   -   Noah Desch
         Problems with Quit instruction   -   Karl Holmes
      Re: Open Application with Text   -   Noah Desch

Re: Open Application with Text
Date: 01.08.02 12:15 (Thu, 01 Aug 2002 07:15:57 -0400)
From: Carl Adler
On 7/31/02 11:31 AM, the NSA intercepted the following message from "Carl
Adler" <<email address removed>>:

> Is it possible to open an application by dropping a text clipping on its
> icon as opposed to dropping a file or folder on the application?

File type: clpt
Creator: MACS

I greatly appreciate all the answers I received on this question but I have
one more question. I assume from the answers that the solution is limited to
the Mac OS and that there is no way to approach this from Windows OS?
Carl

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Open Application with Text
Date: 01.08.02 18:58 (Thu, 1 Aug 2002 10:58:05 -0700)
From: Will Leshner
Does Windows have text clippings?

On Thursday, August 1, 2002, at 04:15 AM, Carl Adler wrote:

> I greatly appreciate all the answers I received on this question but I
> have
> one more question. I assume from the answers that the solution is
> limited to
> the Mac OS and that there is no way to approach this from Windows OS?
> Carl

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Open Application with Text
Date: 01.08.02 22:04 (Thu, 01 Aug 2002 17:04:38 -0400)
From: Carl Adler


> From: "REALbasic Network Users Group" <<email address removed>>
> Date: Thu, 1 Aug 2002 15:29:16 -0500
> To: "REALbasic Network Users Group" <<email address removed>>
> Subject: REALbasic-NUG Digest #6559
>
> Subject: Re: Open Application with Text
> From: "Will Leshner" <<email address removed>>
> Date: Thu, 1 Aug 2002 10:58:05 -0700
>
> Does Windows have text clippings?

Yes at least ME 2000 NT XP
Carl

>
> On Thursday, August 1, 2002, at 04:15 AM, Carl Adler wrote:
>
>> I greatly appreciate all the answers I received on this question but I
>> have
>> one more question. I assume from the answers that the solution is
>> limited to
>> the Mac OS and that there is no way to approach this from Windows OS?
>> Carl

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Open Application with Text
Date: 31.07.02 19:31 (Wed, 31 Jul 2002 14:31:18 -0400)
From: Carl Adler
Is it possible to open an application by dropping a text clipping on its
icon as opposed to dropping a file or folder on the application?

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Open Application with Text
Date: 31.07.02 19:34 (Wed, 31 Jul 2002 11:34:12 -0700)
From: Seth Willits
On 7/31/02 11:31 AM, the NSA intercepted the following message from "Carl
Adler" <<email address removed>>:

> Is it possible to open an application by dropping a text clipping on its
> icon as opposed to dropping a file or folder on the application?

File type: clpt
Creator: MACS

Add that to your file types list and you're good to go.


Seth Willits
---------------------------------------------------------------------------
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com

"Hi! I'm a .signature virus! Copy me into your ~/.signature to help me
spread!"
-- Vengence Virii
---------------------------------------------------------------------------



---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Open Application with Text
Date: 31.07.02 19:39 (Wed, 31 Jul 2002 20:39:41 +0200)
From: Frank Bitterlich
Sure; just add the file type (MacType 'clpt') to your file types, and
check the "Document Icon" checkbox. Actually reading the text clip when
you receive the OpenDocument event is another story; AFAIK not even
BBEdit knows how to do that. I guess you'll just have to parse the
contents of the clipping (in it's 'TEXT' resource) yourself, or find a
suitable toolbox call.

Cheers,
Frank+++

Carl Adler wrote:
>
> Is it possible to open an application by dropping a text clipping on its
> icon as opposed to dropping a file or folder on the application?

Re: Open Application with Text
Date: 31.07.02 19:49 (Wed, 31 Jul 2002 11:49:34 -0700)
From: Seth Willits
On 7/31/02 11:39 AM, the NSA intercepted the following message from "Frank
Bitterlich" <<email address removed>>:

> Sure; just add the file type (MacType 'clpt') to your file types, and
> check the "Document Icon" checkbox. Actually reading the text clip when
> you receive the OpenDocument event is another story; AFAIK not even
> BBEdit knows how to do that. I guess you'll just have to parse the
> contents of the clipping (in it's 'TEXT' resource) yourself, or find a
> suitable toolbox call.

It's not difficult at all. I do it in Speech Text. Just look for TEXT and
styl resources with the id 256. Open them up and use an editfield's
SetTextAndStyle method to view the text of the clipping.

Seth Willits
---------------------------------------------------------------------------
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com

"Hi! I'm a .signature virus! Copy me into your ~/.signature to help me
spread!"
-- Vengence Virii
---------------------------------------------------------------------------



---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Open Application with Text
Date: 31.07.02 20:05 (Wed, 31 Jul 2002 15:05:54 -0400)
From: Noah Desch

On Wednesday, July 31, 2002, at 02:49 PM, Seth Willits wrote:

> It's not difficult at all. I do it in Speech Text. Just look for TEXT and
> styl resources with the id 256. Open them up and use an editfield's
> SetTextAndStyle method to view the text of the clipping.

Yeah, but they might not always be at that ID (I have occasionally seen
one at a different ID but I can't remember where). You should really be
parsing the 'clpt' resource.

-Noah Desch
Wireframe Software
http://wireframe.virtualave.net

"The noozle! The noozle on the hoose!"
-Groundskeeper Willie

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Open Application with Text
Date: 31.07.02 20:38 (Wed, 31 Jul 2002 12:38:37 -0700)
From: Seth Willits
On 7/31/02 12:05 PM, the NSA intercepted the following message from "Noah
Desch" <<email address removed>>:

> Yeah, but they might not always be at that ID (I have occasionally seen
> one at a different ID but I can't remember where). You should really be
> parsing the 'clpt' resource.

There is no clpt resource.

Seth Willits
---------------------------------------------------------------------------
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com

"Yesterday we obeyed kings and bent our necks before emperors. But
today we kneel only to truth, follow only beauty, and obey only love."
-- Kahlil Gibran
---------------------------------------------------------------------------


---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Open Application with Text
Date: 31.07.02 20:52 (Wed, 31 Jul 2002 15:52:49 -0400)
From: Charles Yeomans

On Wednesday, July 31, 2002, at 03:38 PM, Seth Willits wrote:

> On 7/31/02 12:05 PM, the NSA intercepted the following message from
> "Noah
> Desch" <<email address removed>>:
>
>> Yeah, but they might not always be at that ID (I have occasionally seen
>> one at a different ID but I can't remember where). You should really be
>> parsing the 'clpt' resource.
>
> There is no clpt resource.
>

Usually, there are 'TEXT' and 'styl' resources. A clipping created in
OS X also has 'drag' and 'RTF ' resources.

Charles Yeomans


---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Open Application with Text
Date: 31.07.02 21:42 (Wed, 31 Jul 2002 16:42:39 -0400)
From: Noah Desch

On Wednesday, July 31, 2002, at 03:52 PM, Charles Yeomans wrote:
>> There is no clpt resource.
>>
> Usually, there are 'TEXT' and 'styl' resources. A clipping created in OS
> X also has 'drag' and 'RTF ' resources.

Crap, sorry folks, I meant the 'drag' resource. That tells you where
everything is in the clipping.

-Noah Desch
Wireframe Software
http://wireframe.virtualave.net

A closed mind indeed is he who sees only his own path.

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Open Application with Text
Date: 31.07.02 19:52 (Wed, 31 Jul 2002 14:52:43 -0400)
From: Noah Desch

On Wednesday, July 31, 2002, at 02:39 PM, Frank Bitterlich wrote:

> Actually reading the text clip when
> you receive the OpenDocument event is another story; AFAIK not even
> BBEdit knows how to do that. I guess you'll just have to parse the
> contents of the clipping (in it's 'TEXT' resource) yourself, or find a
> suitable toolbox call.

It's not that hard. The 'clpt' resource is documented at
apple.com/developer

-Noah Desch
Wireframe Software
http://wireframe.virtualave.net

"Don't be a cup and ball hog"
-Bart Simpson

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>