• 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
'Palm Desktop' Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

'Palm Desktop' Question


  • Subject: 'Palm Desktop' Question
  • From: email@hidden
  • Date: Thu, 08 May 2003 11:53:51 -0400

I am working with 'Palm Desktop' Version 4.1, on a dual 500 MHz G4 PPC PM, running MacOS X 10.2.6, with 'Script Editor' v. 1.9.
As per the Code below I can launch the 'Pam Desktop' and execute a number of Control actions.
What I cannot do is read or set the Value [Contents] of the 'Save As:' Text Field - of the Window, as a result of doing a 'File' Menu 'Export
'.

-----

tell application "Palm Desktop"
activate
end tell

tell application "System Events"
tell process "Palm Desktop"
delay 1
click menu item "Export
" of menu "File" of menu bar 1

tell window 1

-- Need to obtain Value [Contents] of 'Save As:' Text Field.
-- Need to set Value [Contents] of 'Save As:' Text Field.

click pop up button 1
click menu item "vCard" of menu of pop up button 1
click button "Export"
end tell
end tell

end tell

ignoring application responses
tell application "Palm Desktop" to quit
end ignoring

-----

I have tried:

'set myTempString to (the value of text field 1 of window 1 to "TempVCard")'
'set myTempString to (the contents of text field 1 of window 1 to "TempVCard")'

'set (the value of text field 1 of window 1) to "TempVCard"'
'set (the contents of text field 1 of window 1) to "TempVCard"'

..., and other variations, without success.

I have modified the Code to look at the results of using each of the above Lines - such as ..

tell window 1
try
set the value of text field 1 of window 1 to "TempVCard"
click pop up button 1
click menu item "vCard" of menu of pop up button 1
on error
display dialog "Fatal Error." buttons {"OK"} giving up after 3
click button "Cancel"
end try
click button "Export"
end tell
end tell

... with 'Fatal Error' always displayed when attempting to read or set the 'Save As:' Text Field Value [Contents].


Any assistance is appreciated.

--

Samuel J. W. Leidy
_______________________________________________
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.

  • Prev by Date: Re: iTunes 4 & Artwork scripting
  • Next by Date: logfiles and date math
  • Previous by thread: Test - Please ignore
  • Next by thread: 'Palm Desktop' Question
  • Index(es):
    • Date
    • Thread