• 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: Asking User Input on First Run only
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Asking User Input on First Run only


  • Subject: Re: Asking User Input on First Run only
  • From: Joseph Weaks <email@hidden>
  • Date: Mon, 30 Dec 2002 23:54:15 -0600

Kai,
This is great. Thanks so much. It is really quite simple and straightforward. I thought properties would work in this way. Though, I've never used this "to blah blah blah" handler format.
One glitch has me puzzled. When it is run for the first time, after the two files are selected, the script ends with no more dialog boxes. Is that the purpose of the "error number -128"? When I remove the line, the script busts. Shouldn't the script go ahead and do the synchronization once the files have been selected?

Thanks,
Joe

On Monday, December 30, 2002, at 09:02 PM, Kai Edwards wrote:

It should - as long as the script isn't recompiled. Try something like this:

===========================

property p1 : missing value
property p2 : missing value
property d0 : missing value

to getFileAliases()
try
return {p1 as alias, p2 as alias}
on error
firstRun()
error number -128
end try
end getFileAliases
[snip: script]
_______________________________________________
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.

References: 
 >Re: Asking User Input on First Run only (From: Kai Edwards <email@hidden>)

  • Prev by Date: <no subject>
  • Next by Date: Re: Scripting system preferences in OS X 10.2.3
  • Previous by thread: Re: Asking User Input on First Run only
  • Next by thread: Re: Asking User Input on First Run only
  • Index(es):
    • Date
    • Thread