• 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: extending an command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: extending an command


  • Subject: RE: extending an command
  • From: "Mahesh Vyas" <email@hidden>
  • Date: Sun, 9 Nov 2008 03:08:01 +0530
  • Thread-topic: extending an command

Title: RE: extending an command

Error is "Expected End of line but found identifier"

Application is QuarkXpress and dynamic libraries are 2 XTensions.

one XT defines open as
"open", "Open the specified object(s)",
kCoreEventClass, kAEOpen, noReply, "", replyOptional, kReplyParams,
typeObjectSpecifier, "list of objects to open", directParamRequired, kSingleNotEnumChanges,
{
// its parameters
}
and our XT defines open as
"open", "Open the specified object(s)",
kDispatchSuite, kAEOpen, noReply, "", replyOptional, kReplyParams,
typeObjectSpecifier, "list of objects to open", directParamRequired, kSingleNotEnumChanges,
{
}

Let me know if you need more info.
Thanx
Mahesh VYas







Regards
Mahesh Vyas

CONFIDENTIALITY NOTICE
This e-mail transmission and any documents, files, or previous e-mail messages appended or attached to it, may contain information that is confidential or legally privileged. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that you must not read this transmission and that any disclosure, copying, printing, distribution, or use of the information contained or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify the sender by telephone 91.172.2299332 or return e-mail message Mahesh Vyas<mailto:email@hidden>  and delete the original transmission, its attachments, and any copies without reading or saving in any manner. Thank you.



-----Original Message-----
From: Ed Stockly [mailto:email@hidden]
Sent: Sun 09-Nov-08 02:27
To: applescript-users-request
Cc: Mahesh Vyas
Subject: Re: extending an command

This is a difficult question to answer for a few reasons.

First, it sounds like you're mixing up the terms Dictionary and Library.

Second you haven't let us know which application you're scripting

Third, you haven't provided an example that may help us diagnose the 
issue. (keep it short but give us enough to go on).

Something like:

Tell application XXXX

  open myDocument ....

end tell

HTH,

ES




On Nov 8, 2008, at 11:51 AM, Mahesh Vyas wrote:

> I am getting error while compiling a script if command (with 
> parameters) defined in application is also defined in library 
> loaded with application.
>
> "open" command is defined in Application, same command can also be 
> executed with parameter
> Now if library loaded dynamically also defines "open" command (with 
> parameter ).
>
> If we write a script and use "open" without parameters, it compiles 
> and executes properly.
> If use "open" as parameters then script doesnt compile and gives 
> error at the parameter of open.
>
> If we do not load the library, the "open" command works fine with 
> parameter
>
> Let me know if I need to correct at library end.
>
> one more query, I have noticed that if we define "yes" and "no" at 
> application end, we cannot define it at library end. script will 
> not compile properly.
>
> Is their any way we can scope the definition.
>
>
>
> Thanx
> Mahesh Vyas
>
> <winmail.dat> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (applescript-
> email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40aol.com
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden


 _______________________________________________
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

References: 
 >extending an command (From: "Mahesh Vyas" <email@hidden>)
 >Re: extending an command (From: Ed Stockly <email@hidden>)

  • Prev by Date: Re: extending an command
  • Next by Date: Re: accessing a property of an object in AppleScript
  • Previous by thread: Re: extending an command
  • Next by thread: RE: extending an command
  • Index(es):
    • Date
    • Thread