• 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
Re: SV: Reading contents of a clipping file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SV: Reading contents of a clipping file?


  • Subject: Re: SV: Reading contents of a clipping file?
  • From: Martin Orpen <email@hidden>
  • Date: Fri, 12 Nov 2004 13:15:38 +0000

Title: Re: SV: Reading contents of a clipping file?
on 12/11/04 1:06 pm, Richard Rönnbäck wrote:

> I already had Satimage installed but I have to admit I haven't yet needed it
> (or known that I did :-) ) but from now one it seems I will be using it
> frequently

You don't need osax to do this.

And I’ve always wanted to use “FISH” as a tid:

set
foo to choose file
set
bar to quoted form of (POSIX path of foo & "/rsrc")
set
clipText to do shell script "strings " & bar
set AppleScript's text item delimiters to "FISH"
set
theText to text item 1 of clipText

It’d need a bit of work to get it to remove everything apart from the text, but it’s worth using “strings” as it’s so useful for getting information out of files – especially usernames and passwords out of compiled scripts...

--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
 _______________________________________________
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: SV: Reading contents of a clipping file?
      • From: Gnarlodious <email@hidden>
References: 
 >SV: Reading contents of a clipping file? (From: Richard Rönnbäck <email@hidden>)

  • Prev by Date: SV: Reading contents of a clipping file?
  • Next by Date: Os 9 SOunds
  • Previous by thread: SV: Reading contents of a clipping file?
  • Next by thread: Re: SV: Reading contents of a clipping file?
  • Index(es):
    • Date
    • Thread