Re: How do I delete the 1st three characters from a variable
Re: How do I delete the 1st three characters from a variable
- Subject: Re: How do I delete the 1st three characters from a variable
- From: has <email@hidden>
- Date: Wed, 4 Jan 2006 23:45:36 +0000
Shane Stanley wrote:
>[in] some apps, [...] the form "text from character 4 to
>character -1 of..." will work where "text 4 thru -1 of..." won't.
Tex-Edit Plus being an obvious example. However, I'd consider _requiring_ this form a bit of a bug in the application, as it really should be intelligent enough to determine the start and end references ('character 4' and 'character -1' in this case) automatically.
It is, after all, what users are led to expect will work. Heck, most ASers probably aren't even aware that 'element x thru y' is actually a shortcut, and by-range references are often capable of a whole lot more [1]. Even Cocoa Scripting's default Text Suite - hardly the brightest bulb in the box - manages to provide the basic shortcut; for example, the specifier 'characters 3 thru 5' will internally translate to 'characters (character 3) thru (character 5)'.
As always, if you care about this stuff then sending a polite bug report/enhancement request to the relevant developer wouldn't go amiss.
has
[1] e.g. Silly, useless but illustrative example: 'tell app "Finder" to get items "Desktop" thru (folder after file -3) of home'
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
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