Re: For some strange reason
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