Jump to content

Copying/pasting records and formatting question


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

Recommended Posts

hello everyone,

i often copy all fields from my contact database records onto the

clipboard to paste the data into emails etc., using the "copy record"

script.

because usually not all fields are filled out (home phone, work phone,

home fax, work fax, etc.) the data appears with gaps once it's pasted

into something else.

is there a way to select all data from a record and have all fields

appear on separate lines when pasted, preferably so that empty fields

are ignored?

so that someone with only name, email and home phone would appear like

this:

name

email

home phone

instead of something like this:

name email

home phone

thanks in advance for any hints!

alexandra

[email protected]

Link to comment
Share on other sites

Try using a peform applescript step using the following:

set newData to ""

copy {name of every cell of current record, every cell of current record} to {cellNames, cellData}

repeat with k from 1 to count of cellData

if item k of cellData = "" then

-- skip

else

try

copy item k of cellNames & ": " & item k of cellData to temp

copy newData & return & temp to newData

end try

end if

end repeat

set the clipboard to newData

Link to comment
Share on other sites

  • 2 weeks later...

This topic is 7137 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.