On Jun 25, 6:59 am, Jo_y wrote:
> On 16 Giu, 21:59, Kevin Audleman wrote:
>
> > Hi gang,
>
> > I would like to write a script that opens all .fp7 (Filemaker Pro 7)
> > files in a directory. Ideally it would run during startup. I am a
> > total newbie to Applescript and was wondering if anybody could show me
> > how to write such a script.
>
> > Thanks,
> > Kevin
>
> past the text below in a new Script Editor-window
>
> property x : choose folder
>
> tell application "finder" to open items of x
>
> ...and save it as applescript application whereever you want.
> 1) save this application
> 2) choose the destination folder of your Filemaker-files
> 3) confirm a second time
> 4) go to accounts-preferences and add the Applescript-appl.
>
> visit
>
> http://www.macupdate.com/info.php/id/11740
>
> if you want to customize the icon. (FinderIconCM)
I had partial success with this. I was able to create a script that
will open the desired files. When I run the script from Script Editor
by clicking the Run button, Filemaker opens the files just fine.
However I am having trouble getting this to work at startup. When I
tried to go to System Preferences->Accounts->Login Items and add the
script, OS X chooses to open the script in the script editor instead
of launching it!
So next I added a crontab entry:
@reboot osascript /Users/myuser/Documents/LaunchDatabases.scpt
This works, except Filemaker won't go all the way. The icon starts
bouncing wildly in the dock and won't actually open any files until I
click on it. I want this process to be automatic as I have novice
computer people running the machine.
Is there any way to make Filemaker actually open without user
intervention?
Thanks,
Kevin
>> Stay informed about: Script to open all files in a directory