Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > Re: Simple Appl...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 1633 of 1674
Post > Topic >>

Re: Simple Applescript to open files in folder

by Jo_y <jo_y@[EMAIL PROTECTED] > Jun 25, 2008 at 04:16 AM

On 24 Giu, 23:37, Lisa Jacobbi <ljacobbi...@[EMAIL PROTECTED]
> wrote:
> In article <user-A92F5F.17403024062...@[EMAIL PROTECTED]
>,
> =A0Sander Tekelenburg <u...@[EMAIL PROTECTED]
> wrote:
>
>
>
>
>
> > In article <ljacobbi245-0530D0.10281224062...@[EMAIL PROTECTED]
>,
> > =A0Lisa Jacobbi <ljacobbi...@[EMAIL PROTECTED]
> wrote:
>
> > > Please redirect me if there's a better place to post this.
>
> > Crossposted and followups set to <news:alt.comp.lang.applescript>
>
> > > All I need is
> > > a simple applescript to open all the files in a specific folder.
That=
's
> > > it. The contents of the folder change regularly, but are all opened
b=
y
> > > the same app. Thanks!
>
> > Basically just this:
>
> > set a_Folder to choose folder
> > tell application "Finder" to open every file of a_Folder
>
> > How to do it best depends on where that specific folder is, and
when/ho=
w
> > you want the script to run/be triggered.
>
> My folder is named "Work" and it's on the desktop. It's filled with
> aliases to whatever I am working on in Finale 2008. Could you find the
> time to write up a script for me? Or is what you wrote above all I need
> and can copy and paste it into a freestanding applescript app? I want to
> be able to click on the script in the dock and have it launch my day's
> work projects.
>
> Thank you,
>
> -Lisa
>
> P.S. I tried posting this to your reply-to newsgroup, and it said the
> group name was invalid. (alt.comp.lang.applescript)

Hi, get this one:



property x : choose folder

tell application "Finder" to open items of x




Instructions:
1) open the script in Script Editor and save it in the Script- menu -
folder (path: home/Library/Scripts/)
2) This script will you ask 2 times for saving:
 a) to memorize the path of your folder (Work)
 b) to confirm the path of your folder (Work)

to change the path, add a white space after the last charcter of last
line and save !
If the amount and the size of files is big (50 MB) insert a timeout
command, like:

with timeout of 300 seconds
	tell application "Finder" to open items of x
end timeout

Good work!
 




 2 Posts in Topic:
Re: Simple Applescript to open files in folder
Jo_y <jo_y@[EMAIL PROT  2008-06-25 04:16:04 
Re: Simple Applescript to open files in folder
Lisa Jacobbi <ljacobbi  2008-06-25 19:18:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 11:09:31 CST 2008.