• 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: copy a fields contents in Cumulus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: copy a fields contents in Cumulus


  • Subject: Re: copy a fields contents in Cumulus
  • From: Paul Skinner <email@hidden>
  • Date: Thu, 9 May 2002 12:23:00 -0400

On Wednesday, May 8, 2002, at 11:50 PM, Kelvin Aitken wrote:

I have never used Applescript before but have run out to buy the
"Quickstart" book so I am ready for the big leap.


Welcome!

In the meantime while I clamber up the learning curve can someone point
me in the right direction for copying the contents of a field ("Record
Name") to another field which I have created (called "mySortField") in
Cumulus 5.

tell application "Cumulus 5 Client"
tell collection "yourCollectionsName"
set recordName to the name of record 1
set field "mySortField" of record 1 to recordName
end tell
end tell

Also, as a matter of interest, is it possible to copy part of the text
in a field? For example the text in the "Record Name" field are in two
parts separated by a space. i.e. "F16E01 1234.jpg". I want to select the
first part of the record name (i.e. "F16E01") and paste that into
another field. When using Macromedia Director I can write a line of code
that will select all of the text up to a given character (in this case
as space). Is this possible in Applescript?

tell application "Cumulus 5 Client"
tell collection "yourCollectionsName"
set recordName to the name of record 1
set AppleScript's text item delimiters to " "
set recordPrefix to text item 1 of recordName
set field "recordPrefix" of record 1 to recordPrefix
end tell
end tell

--
Paul Skinner
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >copy a fields contents in Cumulus (From: Kelvin Aitken <email@hidden>)

  • Prev by Date: Re: Briskets
  • Next by Date: Re: applescript-users digest, Vol 3 #442 - 16 msgs
  • Previous by thread: copy a fields contents in Cumulus
  • Next by thread: Re: Unique TIDs in OSX?
  • Index(es):
    • Date
    • Thread