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

Folder action script

 
Goto page 1, 2
   Macintosh computer (Home) -> Apple Scripts RSS
Next:  File list from Spotlight  
Author Message
Jo_y

External


Since: Jun 22, 2008
Posts: 36



(Msg. 1) Posted: Thu Jul 24, 2008 1:40 pm
Post subject: Folder action script
Archived from groups: alt>comp>lang>applescript (more info?)

it's possibile to extend the time of a folder action event?
And to eliminate the annoying contraction of windows during the event?
Arrg!

 >> Stay informed about: Folder action script 
Back to top
Login to vote
Gregory Weston1

External


Since: Oct 03, 2004
Posts: 2243



(Msg. 2) Posted: Thu Jul 24, 2008 8:36 pm
Post subject: Re: Folder action script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
Jo_y wrote:

> it's possibile to extend the time of a folder action event?
> And to eliminate the annoying contraction of windows during the event?
> Arrg!

What do you mean? (And Talk Like a Pirate Day is nearly two months off.)

--
"Harry?" Ron's voice was a mere whisper. "Do you smell something ... burning?"
- Harry Potter and the Odor of the Phoenix

 >> Stay informed about: Folder action script 
Back to top
Login to vote
Jo_y

External


Since: Jun 22, 2008
Posts: 36



(Msg. 3) Posted: Fri Jul 25, 2008 2:19 am
Post subject: Re: Folder action script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> What do you mean? (And Talk Like a Pirate Day is nearly two months off.)

Hmmm...
what do you mean with "Pirate Day"??
anyway, i admit that some of my questions posted here are not
appropriate for this forum, excused.
 >> Stay informed about: Folder action script 
Back to top
Login to vote
Jo_y

External


Since: Jun 22, 2008
Posts: 36



(Msg. 4) Posted: Fri Jul 25, 2008 7:10 am
Post subject: Re: Folder action script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> What do you actually mean by "extend the time of a folder action event?"
> Are you just trying to insert pauses? Or a delay before the action
> starts? Or...?

Very Happy Arg! (it's joke too)
extending the fasc-time:
when i continue to add items to a folder (of course, whith a folder
action attached) and this has not yet finished his conversion (or
whatever else other),works bad.


> What do you mean by the "contraction of windows during the event?"
> What's the nature of this "contraction" and what seems to trigger it?

It was very annoying thing in Panther, every time when a folder (with
attached actions) gots items, now a bit improved in Tiger, causes a
contraction of finder windows, putting these in the backround. (like
during a Mouseclick on desk, every in Finder)
i can't move to Leo, the cpu is too old on my laptop, year 2003.
 >> Stay informed about: Folder action script 
Back to top
Login to vote
Jo_y

External


Since: Jun 22, 2008
Posts: 36



(Msg. 5) Posted: Fri Jul 25, 2008 7:24 am
Post subject: Re: Folder action script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for your responses, Weston (like Edward W?) and Roger.

> > it's possibile to extend the time of a folder action event?
>
extending the fasc-time:
when i continue to add items to a folder (of course, whith a folder
action attached) and this has not yet finished his conversion (or
whatever else other), it works badly on my mac.

> > And to eliminate the annoying contraction of windows during the event?
>
It was a very annoying thing in Panther, every time when a folder
(with
attached actions) gots items, -now a bit improved in Tiger-, has
caused and causes a
contraction of all finder windows, putting these in the backround.
(like
during a Mouseclick on desk, in Finder)
i can't move to Leo, the cpu is too old on my laptop, year 2003.
>
> > Arrg!
>
> Indeed!
Very Happy
 >> Stay informed about: Folder action script 
Back to top
Login to vote
Gregory Weston1

External


Since: Oct 03, 2004
Posts: 2243



(Msg. 6) Posted: Fri Jul 25, 2008 7:47 am
Post subject: Re: Folder action script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
Jo_y wrote:

> > What do you mean? (And Talk Like a Pirate Day is nearly two months off.)
>
> Hmmm...
> what do you mean with "Pirate Day"??
> anyway, i admit that some of my questions posted here are not
> appropriate for this forum, excused.

Talk Like a Pirate Day comes in late September. I thought the "arrg"
that you were ending all your messages with might be just jumping the
gun a bit.

But back to your questions:

What do you actually mean by "extend the time of a folder action event?"
Are you just trying to insert pauses? Or a delay before the action
starts? Or...?

What do you mean by the "contraction of windows during the event?"
What's the nature of this "contraction" and what seems to trigger it?

--
"Harry?" Ron's voice was a mere whisper. "Do you smell something ... burning?"
- Harry Potter and the Odor of the Phoenix
 >> Stay informed about: Folder action script 
Back to top
Login to vote
Jo_y

External


Since: Jun 22, 2008
Posts: 36



(Msg. 7) Posted: Fri Jul 25, 2008 8:54 am
Post subject: Re: Folder action script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> > extending the fasc-time:
F-older A-ction SC-ript
(it's not my invention)


> Tricky. I think one of the first things I'd look at is if the script
> really should be taking as long as it does or if there's something
> artificially slowing it down. If it's just a complex/lengthy action,
> you'll probably have to either break it up into cascading steps (and
> potentially different folders) so the root script can be used again. Or,
> frankly, it may be that folder actions are the wrong tool for the job.

Interesting. Solely, i add only one script x time to each folder, but
it seems that my scripts are too long, ..i'll try to work on, dividing
the vary actions in more steps..

> > > What do you mean by the "contraction of windows during the event?"
> > > What's the nature of this "contraction" and what seems to trigger it?
>
> > It was very annoying thing in Panther, every time when a folder (with
> > attached actions) gots items, now a bit improved in Tiger, causes a
> > contraction of finder windows, putting these in the backround. (like
> > during a Mouseclick on desk, every in Finder)

This was always so, on activating the folder actions.
Whether Panther, Tiger or folder action scripts, it is so. There is no
side effect to cause this action.(now, in Tiger it's a bit better)It
does not happen with the normal scripts, only with the
FoldeActionScripts.

> > i can't move to Leo, the cpu is too old on my laptop, year 2003.

Oh.. my laptop has only a Cd-drive, and Leo comes only as dvd. My
external as well as my internal drive cannot install this.
 >> Stay informed about: Folder action script 
Back to top
Login to vote
Jolly Roger

External


Since: Sep 09, 2006
Posts: 1943



(Msg. 8) Posted: Fri Jul 25, 2008 9:03 am
Post subject: Re: Folder action script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
Jo_y wrote:

> it's possibile to extend the time of a folder action event?

It's hard to tell exactly what you mean by "extend the time". If you
ant to delay execution of any script in AppleScript, you can use the
"delay" command. You can find details about that command in the
Standard Additions dictionary.

> And to eliminate the annoying contraction of windows during the event?

I'm also not sure what you mean by "contraction of windows". Are you
seeing windows get smaller in size while your folder action runs? Or
perhaps do you mean that certain windows close when your folder action
runs? Are these windows in the Finder, or in some other application?
It's probable that the way you have written your folder action is
causing such interaction, I suppose. Without details, it's hard to know.

> Arrg!

Indeed!

--
Send responses to the relevant news group rather than to me, as
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR
 >> Stay informed about: Folder action script 
Back to top
Login to vote
Jolly Roger

External


Since: Sep 09, 2006
Posts: 1943



(Msg. 9) Posted: Fri Jul 25, 2008 9:22 am
Post subject: Re: Folder action script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
Jo_y wrote:

> > What do you actually mean by "extend the time of a folder action event?"
> > Are you just trying to insert pauses? Or a delay before the action
> > starts? Or...?
>
> Very Happy Arg! (it's joke too)
> extending the fasc-time:
> when i continue to add items to a folder (of course, whith a folder
> action attached) and this has not yet finished his conversion (or
> whatever else other),works bad.

Perhaps it's because English is not your native toungue (?), but I think
I can speak for the rest of us when I say the particular words you are
choosing, and the relative few number of words you are using, to express
yourself are making it hard for me to understand just what you mean.

What is "fasc-time"?

It seems like you are saying something about how your folder action is
still executing when you add new items to the folder. I'm not sure how
extending the processing time of your folder action would help that
situation.

Most folks learn fairly quickly that you need to write your folder
action in such a way that it moves items it is about to process out of
the base of the watch folder before processing them, or use some other
method of keeping the items bing processed separate from newly-added
items. This is probably along the lines of what you will need to do as
well. So I suggest you start thinking of ways you can do this in your
script.

> > What do you mean by the "contraction of windows during the event?"
> > What's the nature of this "contraction" and what seems to trigger it?
>
> It was very annoying thing in Panther, every time when a folder (with
> attached actions) gots items, now a bit improved in Tiger, causes a
> contraction of finder windows, putting these in the backround. (like
> during a Mouseclick on desk, every in Finder)

I am sure something you have written in your script is causing this to
happen. Perhaps you are telling the Finder, or some other application,
to activate in your script?

--
Send responses to the relevant news group rather than to me, as
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR
 >> Stay informed about: Folder action script 
Back to top
Login to vote
Gregory Weston1

External


Since: Oct 03, 2004
Posts: 2243



(Msg. 10) Posted: Fri Jul 25, 2008 11:11 am
Post subject: Re: Folder action script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
Jo_y wrote:

> > What do you actually mean by "extend the time of a folder action event?"
> > Are you just trying to insert pauses? Or a delay before the action
> > starts? Or...?
>
> Very Happy Arg! (it's joke too)
> extending the fasc-time:
> when i continue to add items to a folder (of course, whith a folder
> action attached) and this has not yet finished his conversion (or
> whatever else other),works bad.

I'm not exactly sure what "works bad" implies because that's fairly
broad. It sounds like you're adding files to the folder in multiple
actions that are distinct but close in time, and that the system is
kicking off your action very quickly (for the first batch) but isn't
able to reliably apply it to future batches because (I'm guessing) it's
still working on the first group.

Tricky. I think one of the first things I'd look at is if the script
really should be taking as long as it does or if there's something
artificially slowing it down. If it's just a complex/lengthy action,
you'll probably have to either break it up into cascading steps (and
potentially different folders) so the root script can be used again. Or,
frankly, it may be that folder actions are the wrong tool for the job.


> > What do you mean by the "contraction of windows during the event?"
> > What's the nature of this "contraction" and what seems to trigger it?
>
> It was very annoying thing in Panther, every time when a folder (with
> attached actions) gots items, now a bit improved in Tiger, causes a
> contraction of finder windows, putting these in the backround. (like
> during a Mouseclick on desk, every in Finder)

That's not a standard behavior of folder actions, as far as I recall
(although it's been a long time since I used 10.3). Look at the specific
scripts you're using and I suspect you'll find that it's a side effect
of some command in there.


> i can't move to Leo, the cpu is too old on my laptop, year 2003.

That doesn't necessarily follow. There were notebooks sold in 2003 that
are quite capable of running Leopard. But from the sound of it that's
not your problem.

--
"Harry?" Ron's voice was a mere whisper. "Do you smell something ... burning?"
- Harry Potter and the Odor of the Phoenix
 >> Stay informed about: Folder action script 
Back to top
Login to vote
Jolly Roger

External


Since: Sep 09, 2006
Posts: 1943



(Msg. 11) Posted: Fri Jul 25, 2008 11:19 am
Post subject: Re: Folder action script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
Jo_y wrote:

> > > extending the fasc-time:
> F-older A-ction SC-ript
> (it's not my invention)
>
>
> > Tricky. I think one of the first things I'd look at is if the script
> > really should be taking as long as it does or if there's something
> > artificially slowing it down. If it's just a complex/lengthy action,
> > you'll probably have to either break it up into cascading steps (and
> > potentially different folders) so the root script can be used again. Or,
> > frankly, it may be that folder actions are the wrong tool for the job.
>
> Interesting. Solely, i add only one script x time to each folder, but
> it seems that my scripts are too long, ..i'll try to work on, dividing
> the vary actions in more steps..

You still haven't sufficiently described what you mean by "too long".

> > > > What do you mean by the "contraction of windows during the event?"
> > > > What's the nature of this "contraction" and what seems to trigger it?

You still haven't sufficiently described what you mean by "contraction
of windows".

Do you ever plan to answer these questions?!

> > > It was very annoying thing in Panther, every time when a folder (with
> > > attached actions) gots items, now a bit improved in Tiger, causes a
> > > contraction of finder windows, putting these in the backround. (like
> > > during a Mouseclick on desk, every in Finder)
>
> This was always so, on activating the folder actions.
> Whether Panther, Tiger or folder action scripts, it is so.

Because you haven't sufficiently described what you mean by "contraction
of windows", we can only guess that you mean when your folder actions
execute, the Finder is put into the background layer, and some other
application comes to the foreground. In my experience, that happens only
when the script you write contains commands that do this. In other
words, I suspect the way you've written your folder action is to blame.

You could certainly help us help you by pasting an example folder action
script here for us to see.

--
Send responses to the relevant news group rather than to me, as
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR
 >> Stay informed about: Folder action script 
Back to top
Login to vote
Jolly Roger

External


Since: Sep 09, 2006
Posts: 1943



(Msg. 12) Posted: Fri Jul 25, 2008 11:24 am
Post subject: Re: Folder action script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
Jo_y wrote:

> > > extending the fasc-time:
> F-older A-ction SC-ript
> (it's not my invention)

I'll have to disagree with you on that. I did a Google search for
"FASC" just now and didn't see any hits related to AppleScript within
the first few pages of search results. So it seems "FASC" as an
abbreviation for "folder action script" certainly must be you invention.

And "fasc-time" still doesn't explain what you really mean by "extending
the time of a folder action event"!

--
Send responses to the relevant news group rather than to me, as
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR
 >> Stay informed about: Folder action script 
Back to top
Login to vote
Jo_y

External


Since: Jun 22, 2008
Posts: 36



(Msg. 13) Posted: Fri Jul 25, 2008 12:01 pm
Post subject: Re: Folder action script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hey, guys

i laughed nobody, i'll try to write a better and clearer text for my
questions.Sorry, nobody is perfect.
I've no desire to tell lies, because i'm here in the forums to learn
too, how others. Hm.
I understand, thats annoying to hear new definitions, but it's not
simple to traslate everything, have patience; hopefully it's not the
end of word.
(related to scripts:little things can corrupt a entire script, i know)

Back to our focus:

a)i activate the folder actions
b)i attach a folder action to a folder (Desktop)
c)i add more files to desktop in 1 action(Sound, Video, Image, Text,
Clipping, ect.)
d)the script begins to work
e)if i add a item where kind was being processed during the folder
action, then this one rests on desktop.
f)after processing all the kinds of files, the finder-windows
continues to pops for-and backward (like activate finder-and like when
you click on desktop, with 1 or more activ windows open; these effect
turns all finder win grey but it does not change the application)


My mac is a laptop, not a desk-computer. Perhaps are little
differences between these.
 >> Stay informed about: Folder action script 
Back to top
Login to vote
Gregory Weston1

External


Since: Oct 03, 2004
Posts: 2243



(Msg. 14) Posted: Fri Jul 25, 2008 1:14 pm
Post subject: Re: Folder action script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
Jo_y wrote:

> > > It was very annoying thing in Panther, every time when a folder (with
> > > attached actions) gots items, now a bit improved in Tiger, causes a
> > > contraction of finder windows, putting these in the backround. (like
> > > during a Mouseclick on desk, every in Finder)
>
> This was always so, on activating the folder actions.
> Whether Panther, Tiger or folder action scripts, it is so. There is no
> side effect to cause this action.(now, in Tiger it's a bit better)It
> does not happen with the normal scripts, only with the
> FoldeActionScripts.

And nothing resembling what you've described happens with folder actions
here, on a G5 running 10.4.11. I don't remember any such thing happening
with Panther, but as I acknowledged it's been a long time since I've
used it.

--
"Harry?" Ron's voice was a mere whisper. "Do you smell something ... burning?"
- Harry Potter and the Odor of the Phoenix
 >> Stay informed about: Folder action script 
Back to top
Login to vote
Dave Balderstone

External


Since: Mar 21, 2006
Posts: 1688



(Msg. 15) Posted: Fri Jul 25, 2008 1:41 pm
Post subject: Re: Folder action script [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Display posts from previous:   
Related Topics:
Folder action script help please! - Hi, when I add an app to /Applications, I'd like an alias to that app to be automatically created in ~/Applications. I think the best way to do that is by attaching a folder action script to /Applications. Can anyone help? Thanks much! -- K.

folder action script loop problem - this post is not archived.

Posix path in a Folder Action Script - Why doesn't this work? It throws a "-1728" error... on adding folder items to thisFolder after receiving addedItems local folderPath --set folderPath to ((thisFolder as Unicode text) as text) set folderPath to POSIX path of (thisFolder as te...

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

Folder action script to delete .ps files older than three .. - Hello, Another request from a more-or-less beginner: I'm trying to write a folder action script that will wait until a new file is added to the folder and then delete all files in the folder whose name extension is .ps and whose creation is more than..
   Macintosh computer (Home) -> Apple Scripts All times are: Pacific Time (US & Canada)
Goto page 1, 2
Page 1 of 2

 
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 ]