Help with Xcode AS app ...
Help with Xcode AS app ...
- Subject: Help with Xcode AS app ...
- From: Robert Mehlschau <email@hidden>
- Date: Tue, 14 Feb 2006 12:36:04 -0800 (PST)
I have created an Applescript application in Xcode.
I opened it in interface builder, selected the
Application icon, and in info went to Applescript
where
I checked "on" the mouseup event.
I made a script file which contained the "ON MOUSEUP"
call but it does not work, any scripting commands that
I put in there don't do anything.
"ON LAUNCH" works well enough but I want scripts to
run on mouseup.
--- email@hidden wrote:
> Send Applescript-users mailing list submissions to
> email@hidden
>
> To subscribe or unsubscribe via the World Wide Web,
> visit
>
>
http://lists.apple.com/mailman/listinfo/applescript-users
> or, via email, send a message with subject or body
> 'help' to
> email@hidden
>
> You can reach the person managing the list at
> email@hidden
>
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of Applescript-users digest..."
>
>
> Today's Topics:
>
> 1. Re: InDesign script Optimization and text
> frame threading
> (David Wolfe)
> 2. Folder Actions and Apple Compressor Droplets
> (Graham Anderson)
> 3. Re: File exists on a posix path (Christopher
> Nebel)
> 4. RE: Script bundle appears as regular folder
> (Jonathan Brown)
> 5. scripting an attachement to mail (Bob Cuilla)
> 6. scripting attachments (Bob Cuilla)
> 7. mail attachements (Bob Cuilla)
> 8. (no subject) (Bob Cuilla)
> 9. Mail attachments (folders) (Bob Cuilla)
> 10. Re: Mail attachments (folders) (Simon Topliss)
>
>
>
----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 14 Feb 2006 10:45:37 -0500
> From: David Wolfe <email@hidden>
> Subject: Re: InDesign script Optimization and text
> frame threading
> To: Shane Stanley <email@hidden>
> Cc: AS users <email@hidden>
> Message-ID:
>
<email@hidden>
> Content-Type: text/plain; charset=US-ASCII;
> delsp=yes; format=flowed
>
> Thanks for your help Shane. This helps me begin to
> understand repeats
> in Applescript.
>
> However, when I run the script, I get an error
> message "InDesign CS
> got an error: every page doesn't understand the
> count message." Any
> ideas?
>
> Thanks again,
> David Wolfe
> settingPace
>
> On Feb 13, 2006, at 6:53 PM, Shane Stanley wrote:
>
> > repeat with i from 1 to count of pages
> > if i mod 2 = 0 then
> > set newFrame to override
> myCreditFrameVerso
> > destination page
> > page i
> > set previous text frame of
> newFrame to text frame
> > "masterpageFrameRecto" of page (i - 1)
> > else
> > set newFrame to override
> myCreditFrameRecto
> > destination page
> > page i
> > if i > 1 then
> > set previous text frame of
> newFrame to text frame
> > "masterpageFrameVerso" of page (i - 1)
> > end if
> > end if
> > end repeat
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 14 Feb 2006 08:34:58 -0800
> From: Graham Anderson <email@hidden>
> Subject: Folder Actions and Apple Compressor
> Droplets
> To: email@hidden
> Message-ID:
> <email@hidden>
> Content-Type: text/plain; charset=US-ASCII;
> delsp=yes; format=flowed
>
> Has anyone written a folder action that accesses an
> apple compressor
> droplet
> essentially, all 'relevant' files that get dropped
> on a 'source'
> folder get compressed with the droplet and written
> to the
> 'compressed' folder
>
> has this wheel already been invented ?
>
> many thanks
> g
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 14 Feb 2006 09:14:54 -0800
> From: Christopher Nebel <email@hidden>
> Subject: Re: File exists on a posix path
> To: AppleScript Users
> <email@hidden>
> Message-ID:
> <email@hidden>
> Content-Type: text/plain; charset=US-ASCII;
> delsp=yes; format=flowed
>
> On Feb 13, 2006, at 7:08 AM, Adam Bell wrote:
>
> > In 10.4.4 at least, I had to modify the first
> shell script as
> > follows to deal with folder names or file names
> with spaces in them:
> >
> > return (((do shell script ("if test -e " &
> "'" & thefile &
> > "'" & " ; then echo 1 ; else echo 0 ; fi" as
> string)) as integer)
> > as boolean)
> >
> > Note: I just moved the single quotes which
> wouldn't compile inside
> > the first quoted string. Using 'quoted form of'
> might be better.
>
> It unquestionably is better, because it will deal
> correctly with
> paths that have single quotes in them, unlike yours.
> Never attempt
> to do your own quoting; I guarantee your code will
> fail for some cases.
>
> To answer Gnarlie's question, test(1) doesn't return
> anything, in the
> sense that it doesn't generate any output. Its
> success or failure is
> signaled by its exit status, which means to test it
> in shell you need
> either an "if" block or its moral equivalent "&&"
> and "||". For
> example, these two are equivalent:
>
> if test -e $thefile ; then echo 1 ; else echo 0 ;
> fi
>
> if test -e $thefile && echo 1 || echo 0
>
> Of course, Gnarlie's observation that you can "echo
> $?" instead is
> even shorter.
>
>
> --Chris Nebel
> AppleScript and Automator Engineering
>
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 14 Feb 2006 10:39:26 -0800
> From: "Jonathan Brown" <email@hidden>
> Subject: RE: Script bundle appears as regular folder
> To: "Daniel Jalkut" <email@hidden>
> Cc: AppleScriptUsers List
> <email@hidden>
> Message-ID:
>
>
<email@hidden>
> Content-Type: text/plain; charset="us-ascii"
>
> Unfortunately not.
>
> thx, jwb
>
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden