Help with error message: Expected end of line but got identifier

The following is a calculated applescript step in a Filemaker script. It tells iCal to go to the date of an iCal event that the script has previously created from Filemaker. The code below keeps generating an error message: "Expected end of line but got identifier." Note: "ACTIVITY::Date" below is Filemaker's way of indicating the file name (ACTIVITY) and the field in question (date). Help appreciated.
"tell application \" iCal\" ¶
activate ¶
switch view to month view ¶
set theDate to date \"" & ACTIVITY::Date & "\" ¶
view calendar at theDate ¶
end tell"

It's not clear exactly what you're aiming for here, so it's not easy to tell you how to fix it.
At first glance I'd say you're missing a quote symbol or two, but even then it doesn't make a lot of sense without more context - for example, 'ACTIVITY::Date' isn't valid as an AppleScript variable name (you can't have a : in a variable name), and your code isn't within a Filemaker block, so it doesn't appear to relate to Filemaker, either.
In either case the only thing that looks remotely valid to me would be:
set theDate to date "\"" & ACTIVITY::date & "\""
but without knowing the context of ACTIVITY::Date it's impossible to tell if this is valid, or how it differs from:
set theDate to date ACTIVITY::Date
(i.e., why the quotes are needed at all)

Similar Messages

  • Error "expected end of line but found identifier"?

    I downloaded the project files for Apple's iDVD Companion http://www.apple.com/applescript/idvd/companion.html because I wanted to make some changes to it and rebuild it using Xcode.
    However, even it its original state the build fails under 10.4.10 and the current version of Applescript. Error is "expected end of line but found identifier" in one of the scripts. See screenshot:
    I don't understand why this Applescript is not compiling - has there been syntax changes in Applescript which stop this compiling? What is the correct syntax?
    Appreciate any pointers... thanks...
    G5 Desktop PPC 1.6 GHz   Mac OS X (10.4.8)  

    Perform a 'Find, Find in Project...' menu item ('Command <shift> F') search for 'Abstract object', and replace such with 'item'.
    However, once this resolves the compiling problem, you will experience a slew of AppleScript errors, when utilizing the compiled application.
    Note: Even the downloadable (pre-complied) 'iDVD Companion' application file has its share of incompatibilities.
    A lot has changed (with MacOS X and AppleScript) since 27.11.2001 - the creation date of the 'iDVD Companion' project.
      Mac OS X (10.4.6)  

  • Apple Script Editor, "Expected end of line but found identifier" Error

    Hello, I'm trying to automate an Application I have, called Self Control, since I have ADD and easily get distracted, and what I want to do is for my computer to automatically set the application up, but to do this, I need a script, which I have already done, but get this error, can someone help me fix this script?
    (the error happens once I click on "run", it tells me as follows: "Syntax Error", followed by, "Expected end of line but found identifier".
    on run argv
    set defaultTime to 1440
    try
      set myTime to item 1 of argv as number
    on error
      set myTime to defaultTime
    end try
    tell application "Usable Keychain Scripting"
      tell current keychain
       set myPass to (password of first generic item ¬
        whose name contains "SelfControl")
       -- eliminate invisible characters, or "gremlins," from password
       set x to quoted form of myPass
       set myPass to do shell script "echo " & x & " | perl -pe 's/[^[:print:]]//g'"
      end tell
    end tell
    tell application "SelfControl" to activate
    tell application "System Events"
      tell process "SelfControl"
       tell slider of window "SelfControl" to set value to myTime
       click button "Start" of window "SelfControl"
      end tell
      tell window 1 of process "SecurityAgent"
       with timeout of 15 seconds
        repeat
         set tryAgain to false
         try
          set value of text field 2 of scroll area 1 of group 1 to myPass
         on error
          delay 1
          set tryAgain to true
         end try
         if not tryAgain then exit repeat
        end repeat
        click button 2 of group 2
       end timeout
      end tell
    end tell
    end run
    I'm no coding expert, but your help would be greatly appreciated. I know that once the script is done I can automate it with Calendar, or even Quicksilver, I just need help with the script.
    Thanks in advance!

    This is a pain with Applescript.
    Could  be a missing " or ' .  I didn't notice this problem.
    Use (* and *) to comment out lines to find where the problem lays. Start big then go smaller and smaller until you find the problem line.  Search internet for examples of the line in question.

  • AppleScript Error: "Expected end of line but found identifier."

    Hi everyone,
    I'm new to applescript and can't seem to figure out the error here.
    Info: Using Hazel and iFlicks 2 Applications for this process.
    tell application "iFlicks 2" to launch
    delay 7
    tell application "iFlicks 2"
    update theFile dbID without gui
    end tell
    I get the error "Expected end of line but found identifier." for the red text.
    theFile reffers to the file that the actions are to be preformed on. This is a Hazel thing.
    Thank you!

    You need to look in the "iFlicks 2" dictionary.  This line isn't matching the syntax found in the dictionary.  I find reading a dictionary nearly impossible.
    update theFile dbID without gui

  • Expected end of line but found identifier.

    Hi
    I have a very basic understanding of applescript, but managed to get this working in Mountain Lion. It now does work in Mavericks. It fails with the above error in the compile when it gets to the underlined section (to tell sheet sName).
    Please can someone help me fix my code. Please don't ask me to go read Cocoa, as I hardly knew what I was doing here.
    Thanks.
    set dName to "Accounts"
    set sName to "Invoice"
    set tName to "Table 1"
    set theResult to display dialog "Would you like to attach some files to this message?" buttons {"Yes", "No"} default button 1
    set wantsAttachment to button returned of theResult
    if wantsAttachment is equal to "Yes" then
              set theAttachment to choose file
    end if
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
              set numRecords to value of cell 2 of column 3
    end tell
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
              set i to 1
              repeat while (i ≤ numRecords)
                        set value of cell 1 of column 3 to i
                        set studentName to value of cell 3 of column 2
                        set balanceBF to value of cell 4 of column 2
                        set fees to value of cell 5 of column 2
                        set paid to value of cell 6 of column 2
                        set balanceCF to value of cell 7 of column 2
                        set emailAddress to value of cell 8 of column 2
      --set emailAddress to value of cell 9 of column 2
                        set invoiceDate to value of cell 2 of column 2
                        set theSubject to "Invoice for " & invoiceDate
      --set theSubject to "Exam Results 2013"
                        set theBody to "Account for " & studentName & return & "Balance b/f = " & balanceBF & return & "Fees for " & invoiceDate & " = " & fees & return & "Paid in " & invoiceDate & " = " & paid & return & "Balance due = " & balanceCF & return
      --set theBody to ""
                        tell application "Mail"
      --set newMessage to make new outgoing message with properties {subject:theSubject, content:theBody, visible:true}
                                  set newMessage to make new outgoing message with properties {subject:theSubject, content:theBody}
                                  tell newMessage to make new to recipient with properties {address:emailAddress}
                                  tell application "Numbers" to activate
                                  tell application "System Events"
                                            tell application process "Numbers"
                                                      click menu item "Copy" of menu "Edit" of menu bar item "Edit" of menu bar 1
                                            end tell
                                  end tell
                                  tell application "Mail" to activate
                                  tell application "System Events"
                                            tell application process "Mail"
                                                      click menu item "Paste" of menu "Edit" of menu bar item "Edit" of menu bar 1
                                            end tell
                                  end tell
                                  if (wantsAttachment is equal to "Yes") then
                                            tell newMessage to make new attachment with properties {file name:theAttachment} at after the last paragraph
                                  end if
      send newMessage
                        end tell
                        set i to (i + 1)
              end repeat
    end tell

    Hi Joao888,
    Nice script!
    Unfortunately, Numbers 3.0 does not support AppleScript, other than the basic "GUI scripting" you can do with any application on your Mac (activate it, have it open documents, click on menu items, etc.). You can't "tell" sheets or tables the way you could in Numbers 2.3.
    Let's hope Apple brings back some support for AppleScript in upgrades to version 3.  You can add your voice by requesting it here:
    Meanwhile, if you need to use your AppleScript you still have your Numbers 2.3 in a folder within your Applications folder, probably named iWork '09.
    SG

  • Syntax Error: Expected end of line but found end of script.

    display dialog "Are you awesome" buttons {"Yes", "No"} default button 1
    if the button returned of the result is "Yes" then
    tell application "Finder"
    display dialog "You Passed the Test" buttons {"YAY", "Poop nugets"} default button 1
    end tell
    display dialog "Cool" buttons {"Ok", "More Info"} default button 1
    if the button returned of the result is "More Info" then
    tell application "Finder"
    display dialog "You are obviously are awesome,
    100% Cool" buttons {"Ok"} default button 1
    end tell
    Then it says:
    Syntax error: Expected end of line but found end of script.

    can somebody fix this scrip becasue i am having the exact same problems
    tell application "SpeechRecognitionServer"
              set theResponse to listen for {"yes", "no"} with prompt "Hello Michael, Would you like the internet?"
              if theResponse is "yes" then
                        launch application "Google Chrome"
                        tell application "SpeechRecognitionServer"
                                  set theResponse to listen for {"yes", "no"} with prompt "What about a Calander?"
              if theResponse is "yes" then
                        launch application "ical"
                        tell application "SpeechRecognitionServer"
                                  set theResponse to listen for {"yes", "no"} with prompt "How about some iTunes Music?"
              if theResponse is "yes" then
                        launch application "itunes"
                        tell application "SpeechRecognitionServer"
                                  set theResponse to listen for {"yes","no"} with prompt "Would you like me to stop?"
              if theResponse is "no" then
                                  say "ok"
    else
              if theResponse is "no" then
                        exit repeat
    else
                                  exit repeat
    end
    end if
    end
    end if
    end
    end if
    end tell 

  • Need help with error message 213:8

    Need help with error message 213:8, this error message prompted after re-installing CS5.5 on the same machine (W7 Pro)
    Thanks.

    Hi TKA_,
    Please try the solutions mentioned on following forum thread.
    http://support.muse.adobe.com/thread/1305941?start=0&tstart=0
    Let me know if it works?
    Regards,
    Sumit Singh

  • Help with error messages

    My dreamweaver program has been running fine, until yesterday
    when I received this error message on launch:
    "At line 56 of file "C:\program files\macromedia\dreamweaver
    8\configuration\shared\common\scripts\dwscriptsExtData.js"
    Reference Error: dwscripts not defined.
    Then whenever any dreamweaver page is opened, the following
    error message appears:
    The following translators were not loaded due to errors:
    ASP.htm: has configuration information that is invalid. JSP.htm:
    has configuration information that is invalid. PHP_MySQL.htm: has
    configuration information that is invalid. XSLT.htm: has
    configuration information that is invalid.
    I've tried uninstalling and reinstalling Dreamweaver, but the
    same messages appear. Also, some of the Javascript programs I had
    running successfully on the pages suddenly no longer work...
    HELP! What should I do?

    You can try this simple fix -
    Quit DW.
    Find this folder -
    C:\Documents and Settings\<username>\Application
    Data\Macromedia\Dreamweaver
    8\Configuration\WinFileCache-*.dat
    (these folders are normally hidden - you may have to use
    Explorer > Tools >
    Folder Options to unhide them)
    or on Mac -
    Library/Application Support/Macromedia/Dreamweaver
    8/Configuration/MacFileCache-*.dat
    and delete it.
    Restart DW. Works better?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "tsfirefly" <[email protected]> wrote in
    message
    news:eh4jbq$lcc$[email protected]..
    > My dreamweaver program has been running fine, until
    yesterday when I
    > received
    > this error message on launch:
    >
    > "At line 56 of file "C:\program
    files\macromedia\dreamweaver
    >
    8\configuration\shared\common\scripts\dwscriptsExtData.js"
    Reference
    > Error:
    > dwscripts not defined.
    >
    > Then whenever any dreamweaver page is opened, the
    following error message
    > appears:
    >
    > The following translators were not loaded due to errors:
    ASP.htm: has
    > configuration information that is invalid. JSP.htm: has
    configuration
    > information that is invalid. PHP_MySQL.htm: has
    configuration information
    > that
    > is invalid. XSLT.htm: has configuration information that
    is invalid.
    >
    > I've tried uninstalling and reinstalling Dreamweaver,
    but the same
    > messages
    > appear. Also, some of the Javascript programs I had
    running successfully
    > on
    > the pages suddenly no longer work...
    >
    > HELP! What should I do?
    >

  • Need Help with error message on the Network Systems Preferences, Please

    In Systems Preference, > Network, I get the error message "Your network settings been changed by another application," with an active OK button. However, when I click the OK button, it persists and does not allow me to access the screen. The only way to end this is to force quit Systems Preferences.
    Do you have any idea what is causing this freeze? I have a TimeWarner Internet connection (which I want to change to Verizon as soon as I resolve this). For a while I had Earthlink DSL which didn't work well at all. Could it be something with the not-used Earthlink or the current TimeWarner?
    Any ideas about the cause and, more importantly, the solution?
    Thanks,
    Jeanie

    My computers have not been networked, intentionally. I like having them autonomous. So I have a separate Internet connection for each. And maybe that's what I need to maintain.
    In the house is a Mac Mini and the house phone with new Verizon modem. In the separate office, I have my G5 tower, which is really my main computer.
    Was just on phone with Verizon Tech who did say that they do not support Mac. They made a decision not to because there are fewer of us. However, I can purchase a premium support which appears to cover such support.
    I've not seen the Verizon commercials, but I expect that they are filled with hype. The one I laugh at the most on the FIOS cable video is that they call their cable user interface "intuitive."

  • Novice (Ok Rookie) need help with error message

    Hello all, I hope that you can help. I am getting this error
    message when trying to submit registration information to the
    database that I have created.
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][ODBC Microsoft Access Driver] You cannot add or
    change a record because a related record is required in table
    'UserTypes'.
    The error occurred in
    C:\CFusionMX7\wwwroot\Development\signup.cfm: line 67
    65 : <cfelse>
    66 : NULL
    67 : </cfif>
    68 : , 0
    69 : , 1
    SQL INSERT INTO C:\CFusionMX7\wwwroot\database\wwf2.Users
    (UserName, Password, FirstName, LastName, EmailAddress, Address,
    City, "State", ZipCode, "Admin", Allowed, UserTypeId) VALUES (
    (param 1) , (param 2) , (param 3) , (param 4) , (param 5) , (param
    6) , (param 7) , (param 8) , (param 9) , 0 , 1 , 3 )
    DATASOURCE WWF2
    VENDORERRORCODE -1613
    SQLSTATE 23000
    Here is the code for that page
    Any help would be much appreciated. Thank you all so much.
    Damien

    quote:
    Originally posted by:
    DRufus
    When I created the form, I used dreamweavers record insertion
    wizard. could this be the issue. I'm sorry if I am not
    understanding your solution.
    Usage of <cfselect> is explained in the cfml reference
    manual. If you don't have one, the internet does. The quickest way
    to find it is to google the name of the tag, complete with angle
    brackets.
    I can't comment on dreamweaver's wizards because I never use
    them.

  • Extended Program check: Need help with error messages

    Hi,
    I am getting the following error message several time on different internal table declarations:
    "Tables with headers are no longer supported in the OO context."
    This is the data declaration that it refers to:
    I_ZDAILY_MVMT TYPE TABLE OF ZDAILY_MVMT WITH HEADER LINE.
    Also, I am getting the following:
    You cannot use the "RANGES" statement within classes. Instead, use the "DATA"
    statement with the type "TYPE/LIKE RANGE OF" . . . . . . . . .              
    This is for the following data declaration:
    RANGES: I_WERKS FOR EBAN-WERKS, "PLANT RANGE
            I_VTWEG FOR I_TVTW-VTWEG,
            I_VTWEG2 FOR I_TVTW-VTWEG,
            I_VKORG FOR I_TVKO-VKORG,
            I_AUART FOR I_TVAK-AUART.
    What do I change and then how do i populate them?
    Thanks,
    John
    Message was edited by:
            John Damion

    We dont use tables with header lines any more.
    Declare a work area and use it transfer the data.
    e.g.
    types: types_ZDAILY_MVMT TYPE standard table of TABLE OF ZDAILY_MVMT.
    data: I_ZDAILY_MVMT TYPE  type_ZDAILY_MVMT,
            wa_zdaily type zdaily_mvmt.
    Now use this work area to move data into the table.
    Regards,
    Amit
    Reward all helpful replies.

  • Please help with error message while trying to update i tunes

    Errors occurred while installing the updates, if the problem persists, choose tools, download only and installing manually

    When i try and download i-tunes i get a message about URBCHN1 not being a win32 command, or something similar.
    ... that's an unusual one.
    could you possibly send us a screenshot of the error message box? for instructions, see the following user tip:
    hudgie: Taking screenshots to help with problems

  • Need help with error message

    I am running Photoshop elements 5.0 on Windows Vista. After downloading some pics that froze the download in the middle, I now get an error message when I try to open the organizer. Message is as follows:
    Microsoft Visual C++ Runtime Library
    The application has requested Runtime to termiinate it in an unusual way.
    Can anyone help me with this problem.

      Have you applied the 5.0.2 patch. That may help.
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=3569
     

  • Help with error message opening lightroom 5 on macbook?

    I downloaded lightroom 5 on my macbook. i have os-lion. When I open the program and error message appears  saying " error switching modules". I am missing all the options to import photos. When I try to click on lightroom preferences at the top of the screen nothing pops up.  It seems like i am missing some of the options and the navigation pane. Do i need to update something else to be able to import photos and click between module pages?

    55AB,
    It appears the error message you have is an ink system failure error message. While it looks like your printer needs to be services there is also a thread with some suggestions out there with some results for this same issue. I have linked this thread this post. You will want to look at message 16 and 17 for what seems to be a resolution for your same printer. Hope this helps.
    http://h30434.www3.hp.com/t5/Other-Printing-Questions/error-message-0xc19a0035-quot-ink-system-failu...
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

  • Help with error message i JBuilder

    Hi everyone!
    Hopefully some of you can help me with a really annoying problem. Every time I compile "MyClass.java" I get the following error-message:
    "MyClass.java": Error #: 750 : initialization error: com.borland.compiler.symtab.LoadError: java.io.IOException: class not found: class java.lang.Object
    If anyone knows how to solve this problem, please let me know!
    In advance, thanks!
    JB

    looks like you don't have java installed or the paths got lost because your JBuilder has no idea where java is :)

Maybe you are looking for

  • Mac OS 10.6.8 and HP LaserJet 5L.

    Hi, To get my printer working i downloaded the  driver HP LaserJet 5L- CUPS Gutenprint v5.2.9. it is working temporarely until i shot off the computer. The next time i need to print something the printer show offline. I have to go to the preferences,

  • Kiosk-type slideshow presentation: suggestions for Keynote alternate app?

    I'm looking for some software ideas to accomplish the following task. I am looking to create continuously-playing slideshow presentations to to play on a flat-screen tv/monitor (~42") running on an Intel MacMini. The monitor will be placed in the phy

  • PDF Fillable Forms: Is Pro Required to save results?

    I am working on a project for a doctor who processes about 50 forms each day. He emails the forms in PDF format to his clients, who then print them out then sent the to the doctor by fax or via snail mail. He then has to pay his assistant to type in

  • External Load Balancing OAM11g Servers

    With OAM 11g, DB 11.2.0.1, RHEL5.6, and WLS 10.3.5... we have clustered the managed servers and all that displays, starts, stops as expected -- hosts are H1 and H2. We also have an external load balancer (haproxy). By "external", I mean that the host

  • Lots of 9.1.2 problems

    Logic keeps crashing since this update. Anyone know what this message is? This is simply trying launch Logic.... Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libSystem.B.dylib 0x00007fff8178d3d6 __kill + 10 1 libSystem.B.dylib 0x00007fff