• 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
theText is empty. why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

theText is empty. why?


  • Subject: theText is empty. why?
  • From: doug rogers <email@hidden>
  • Date: Sat, 30 Apr 2005 14:25:25 -0400

property devToolsPath : "/Developer/Tools/" -- path to Apple Developer Tools
on adding folder items to this_folder after receiving theFile
-- from gnarlodious
set clipPath to quoted form of POSIX path of theFile
set cmd to devToolsPath & "DeRez -e -only 'TEXT' " & clipPath & " | grep '\\/\\* .* \\*\\/' | sed 's/^.*\\/\\* //;s/ \\*\\/$//' | tr -d '\\n'"
set theText to do shell script cmd
display dialog theText & "There are " & (count of items of theText) & " items." --zero items


... more script that does something with the text I want to get from the clipping ...



 There is a crack in everything. That's how the light gets in.
__________<http://home.golden.net/~samu>__________

_______________________________________________
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: theText is empty. why?
      • From: Gnarlodious <email@hidden>
  • Prev by Date: Re: Using AppleScript to Detect Nul Characters
  • Next by Date: Re: Using AppleScript to Detect Nul Characters
  • Previous by thread: Help with droplet
  • Next by thread: Re: theText is empty. why?
  • Index(es):
    • Date
    • Thread