Welcome to MacBoardz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Script to open all files in a directory

 
   Macintosh computer (Home) -> Apple Scripts RSS
Next:  Word 2008 Script  
Author Message
Kevin Audleman

External


Since: Jun 16, 2008
Posts: 2



(Msg. 1) Posted: Mon Jun 16, 2008 12:59 pm
Post subject: Script to open all files in a directory
Archived from groups: alt>comp>lang>applescript (more info?)

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

 >> Stay informed about: Script to open all files in a directory 
Back to top
Login to vote
Michelle Steiner

External


Since: Jul 15, 2003
Posts: 3627



(Msg. 2) Posted: Mon Jun 16, 2008 4:18 pm
Post subject: Re: Script to open all files in a directory [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived

 >> Stay informed about: Script to open all files in a directory 
Back to top
Login to vote
Jo_y

External


Since: Jun 22, 2008
Posts: 36



(Msg. 3) Posted: Wed Jun 25, 2008 6:59 am
Post subject: Re: Script to open all files in a directory [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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)
 >> Stay informed about: Script to open all files in a directory 
Back to top
Login to vote
Kevin Audleman

External


Since: Jun 16, 2008
Posts: 2



(Msg. 4) Posted: Mon Jun 30, 2008 2:40 pm
Post subject: Re: Script to open all files in a directory [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 
Back to top
Login to vote
Michelle Steiner

External


Since: Jul 15, 2003
Posts: 3627



(Msg. 5) Posted: Mon Jun 30, 2008 7:04 pm
Post subject: Re: Script to open all files in a directory [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Jerry Kindall

External


Since: Jul 09, 2003
Posts: 853



(Msg. 6) Posted: Mon Jun 30, 2008 9:34 pm
Post subject: Re: Script to open all files in a directory [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
Kevin Audleman wrote:

> 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?

1) Save it as an applet, rather than as a script.

2) Make sure you're telling FileMaker to activate first, rather than
just telling it to open the files. That's probably why it wants you to
bring it to the front.

--
Jerry Kindall, Seattle, WA <http://www.jerrykindall.com/>

Send only plain text messages under 32K to the Reply-To address.
This mailbox is filtered aggressively to thwart spam and viruses.
 >> Stay informed about: Script to open all files in a directory 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Folder Action script to open .PS files in Preview (OS 10.3)? - I know this should be simple, but I'm a beginner, so please be patient: Thanks to Patrick Stadelmann's generous help to me and to others, I know how to write a folder action script that can print a file that gets dropped into a watched folder. But I've...

Script Editor Crash on Opening Directory - Sorry if this is slightly off-topic (it's not really related to a language feature). Running Script Editor 2.0 (v43), AppleScript version 1.9.3. If I attempt to open the dictionary of any application from the Script Editor File menu I get a brief period...

Need script to delete files with same name - Hi, I need to write a script that functions in this manner: Take the name of the first file of folder1 look for a file in folder2 with the same name (before the extension) Move this file from folder2 to the trash Repeat with all files In english: I..

How can I get script to wait until files are in folder - Hi, I tired this: On idle tell application "Finder" set jpgcount to the count of (files of folder "Disk:Business:Workflows:WorkflowScripts:ProcessedImagesTemp:" whose name extension is "jpg") set rawcount...

Script needs to find, copy and rename files - Hi, I need to write the follwoing script: The clipboard has a list of image files separated by a line break (return). The script needs to find all image files with file names that correspond to the last 7 characters of each name (text -1 through -8) in ...
   Macintosh computer (Home) -> Apple Scripts All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]