• 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
Write file imports with spaces
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Write file imports with spaces


  • Subject: Write file imports with spaces
  • From: John Haley <email@hidden>
  • Date: Wed, 18 Jul 2007 21:04:36 -0500

I have information I have been getting out of FileMaker 6 and importing into MYOB's AccountEdge NE 2007.  All has been working fine until I have tried to use the script with FM 8.5.  Now when I try to import AccountEdge is putting a space between every character.  If I manually open the file with Excel and save as text then try to import the file, it imports correctly.  I guess there is some sort of character that is being added or subtracted.

Here is my code that use to work:

set deskTopPath to the path to the desktop as string
set startupDiskPath to the path to the startup disk as string
set CustImportFile to deskTopPath & "CustUpdate.tab"
set EmpImportFile to deskTopPath & "EmpUpdate.tab"
set oldCustImport to startupDiskPath & "CustInfo"
set oldEmpImport to startupDiskPath & "EmpInfo"
tell application "FileMaker Pro"
tell document "Customers Updater Accounting"
set CustText to cell "Global Export Holder Customers" of current record of current layout
set EmpText to cell "Global Export Holder Employees" of current record of current layout
end tell
end tell
tell application "Finder"
set CustImportFileSession to open for access CustImportFile with write permission
write CustText to CustImportFileSession
close access CustImportFileSession
set EmpImportFileSession to open for access EmpImportFile with write permission
write EmpText to EmpImportFileSession
close access EmpImportFileSession
end tell
tell application "AccountEdge NE"
set importLogCust to import cards of type customer from alias CustImportFile username "John Haley" password "ZERO23ZER" separated by tabs first record is data duplicates are update existing record identify by card id
set importLogEmp to import cards of type employee from alias EmpImportFile username "John Haley" password "ZERO23ZER" separated by tabs first record is data duplicates are update existing record identify by card id
end tell
tell application "Finder"
delete file CustImportFile
delete file EmpImportFile
delete file oldCustImport
delete file oldEmpImport
end tell

Any Help greatly appreciated,
John Haley
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Write file imports with spaces
      • From: Tim Mansour <email@hidden>
  • Prev by Date: Re: Mail and FileMaker
  • Next by Date: Re: Write file imports with spaces
  • Previous by thread: Mark Pinson is out of the office.
  • Next by thread: Re: Write file imports with spaces
  • Index(es):
    • Date
    • Thread