• 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: resetting record values to ""
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: resetting record values to ""


  • Subject: Re: resetting record values to ""
  • From: "Bryan" <email@hidden>
  • Date: Mon, 01 Jan 2001 20:06:40 -0500

Thanks, Paul.

I was afraid of that, Unfortunately the the empty record is:

property record_out : {Last_Name:"", First_Name:"", Account_Num:"",
Facility:"", Referring_Physician:"", Exam_1:"", Exam_2:"", Exam_3:"",
Exam_4:"", Exam_5:"", Exam_6:"", Date_of_Exam:"", Findings:"",
Impression:"", Radiologist:"", Date_of_Interpretation:"", ES:"",
Transcriptionist:"", Report_Header:"", Report_Footer:"", Number_of_Films:"",
state:"", Method_of_Delivery:"", Logged_By:"", Log_Time:"", Adjustment:"",
Total_Exams:"", Modality:"", Exam_Status:"", Interpreting_Organization:"",
Facility_Fax_Num:"", history:"", Additional_Notes:"", Log_Date:"",
Log_Status:"", Account_Name:"", Account_Location:"", Exam_Marker_1:"",
Exam_Marker_2:"", Exam_Marker_3:"", Exam_Marker_4:"", Exam_Marker_5:"",
Exam_Marker_6:"", Problem_Description_Doc:"", CreationDate:"",
Distribution_Site_1:"", Distribution_Site_2:"",
Distribution_Preference_1:"", Distribution_Preference_2:"",
Distribution_Address_1:"", Distribution_Address_2:"", Dictate:"",
Dictation_Number:"", Dictation_ID:"", Transcribed_At:"", month:"",
Patient_Count:"", Exam_Count:"", Modality_2:"", Modality_3:"",
Modality_4:"", Modality_5:"", Modality_6:"", Arrest_Number:"", Test:"",
Transcription_Date:"", Transcription_Time:"", Dictation_Date:"",
Dictation_Time:"", Social_Security_Num:"", Patient_ID:"",
Requested_Action_Doc:"", Problem_Description_TX:"", Problem_Time_TX:"",
Problem_Description_Client:"", Requested_Action_Client:"",
Exam_Classification:"", Record_Name:"", Problem_Date_TX:"",
Client_Problem_Fixed_Date:"", Client_Problem_Fixed_Time:"",
TX_Problem_Fixed_Date:"", TX_Problem_Fixed_Time:"",
RAD_Problem_Fixed_Date:"", RAD_Problem_Fixed_Time:"",
Report_Finalized_Date:"", Report_Finalized_Time:"",
image_file_original_path:"", image_file_name:""}

And I have to reset it multiple times in the same script.
I was hoping for something like:

set every value of record record_out to ""

But I may have to just use a handler.

Bryan
----------
>From: Paul Berkowitz <email@hidden>
>To: Applescript-Users <email@hidden>
>Subject: Re: resetting record values to ""
>Date: Mon, Jan 1, 2001, 7:29 PM
>

> On 1/1/01 4:06 PM, "Bryan" <email@hidden> wrote:
>
>> What is the fastest way to reset the values of every item of a record to ""?
>
>
> set yourRec to {a:"A", b:"B", c:"C", d:"D"}
>
> set {yourRec's a, yourRec's b, yourRec's c, yourRec's d} to {"", "", "",
> ""}
> yourRec
> -- {a:"", b:"", c:"", d:""}
>
>
> I don't know a shorter way, not even
> set yourRec's {a,b,c,d} to {"", "", "", ""} <--ERROR
>
> So prepare ahead and just make the variable a short one, like 'r', instead
> of 'yourRec'!
>
> Maybe richard 23 has some crazy shorter way?
>
> --
> Paul Berkowitz
> _______________________________________________
> applescript-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/applescript-users


  • Prev by Date: Re: Problems scripting the Finder with system 9.0.4
  • Next by Date: Re: applescripting a digital camera
  • Previous by thread: Re: resetting record values to ""
  • Next by thread: Re: resetting record values to ""
  • Index(es):
    • Date
    • Thread