Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7978 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

If I have a file name let say AB1234 and I want my applescript to return 4321BA (backwards text of original) do you know of a quick way to do that? I have looked up different additions that will break down the name, but not a simple backwards command. Please help!! What is the easiest and fastest way to achieve this. Remember the name lengths will differ.

Posted

Here's a simple solution...

set theLength to count of characters in theText

set ReverseText to ""

repeat with i from theLength to 1 by -1

set ReverseText to ReverseText & character i of theText

end repeat

  • 3 weeks later...

This topic is 7978 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.