• 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: For some strange reason
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: For some strange reason


  • Subject: Re: For some strange reason
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 20 May 2011 20:57:27 +1000
  • Thread-topic: For some strange reason

On 20/5/11 7:52 PM, "Michael Ghilissen" <email@hidden> wrote:

> You could use:
>
> set NM to "Mark's canoe"
> do shell script "echo " & quoted form of NM & " | sed
> 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' "

Not really -- that's just changing the case of ASCII characters. There are
lots of other characters it will ignore (and that's especially likely for
the OP, given his .de domain name).
>
> or even shorter:
>
> set NM to "Mark's canoe"
> do shell script "echo " & quoted form of NM & " | tr \"[:lower:]\"
> \"[:upper:]\""

I'm not sure whether that has the same problems or not.

I suspect the OP would do better to try to track down the scripting
addition, or use another that provides similar functionality (as he
presumably has no objection to using scripting additions). I think Satimage
has such commands.

And if he were to venture a bit farther afield, AppleScriptObjC would give
him this:

set myVar to "hello"
-- make it an NSString
tell current application's NSString to set myVar to stringWithString_(myVar)
tell myVar to set myVar to uppercase {}

--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: For some strange reason (From: Michael Ghilissen <email@hidden>)

  • Prev by Date: Re: For some strange reason
  • Next by Date: Re: For some strange reason
  • Previous by thread: Re: For some strange reason
  • Next by thread: Re: For some strange reason
  • Index(es):
    • Date
    • Thread