• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: applescript-users digest, Vol 2 #1258 - 12 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applescript-users digest, Vol 2 #1258 - 12 msgs


  • Subject: Re: applescript-users digest, Vol 2 #1258 - 12 msgs
  • From: "Marc K. Myers" <email@hidden>
  • Date: Wed, 31 Oct 2001 18:37:47 -0500
  • Organization: [very little]

email@hidden wrote:
>
> Send applescript-users mailing list submissions to
> email@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://www.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. Fast Start (Landis)
> 2. Re: Files to Text-file (Emmanuel)
> 3. Re: Folder Actions Memory Q. (Marc K. Myers)
> 4. Re: Getting a folder based on creation date (Nigel Garvey)
> 5. Re:Scripting Canto Cumulus 5.010 (Mark Bj=?ISO-8859-1?B?5g==?=rgager)
> 6. ANNOUNCE: osaxen.com supports XML-RPC (email@hidden)
> 7. ANNOUNCE: osaxen.com supports XML-RPC (email@hidden)
> 8. Re: Getting a folder based on creation date (Frank Miedreich)
> 9. ANNOUNCE: Image Info 0.9 Beta (David Lloyd)
> 10. Re: Folder Actions Memory Q. (John McAdams)
> 11. Does "rounding" work in OS 9.2.1 (email@hidden)
> 12. Re: Mirror Project XMLRPC (Jeremy Reichman)
>
> --__--__--
>
> Message: 1
> Date: Tue, 30 Oct 2001 22:18:42 -0800
> To: email@hidden, email@hidden
> From: Landis <email@hidden>
> Subject: Fast Start
>
> Anyone know if there is a way to AppleScript the export of a QTVR
> movie as a Fast Start QTVR Movie using Quicktime Player Pro? The
> dictionary entry for export is as follows:
>
> can export reference -- the movie or track to export
> as AVI/BMP/DV stream/FLC/hinted movie/image
> sequence/picture/QuickTime movie/AIFF/System 7
> sound/wave/MuLaw/standard MIDI/text file -- the desired file type
>
> Unfortunately Fast Start isn't there (Should be right before FLC).
> Anyone know a way around this?
>
> Thanks,
> Landis
>
> --__--__--
>
> Message: 2
> Date: Wed, 31 Oct 2001 08:21:28 +0100
> To: Scott Earleywine <email@hidden>, Apple AppleScript List
> <email@hidden>
> From: Emmanuel <email@hidden>
> Subject: Re: Files to Text-file
>
> At 4:39 +0100 30/10/01, Scott Earleywine wrote:
> >I would like this script to be a droplet...that is, just drop the 'highest'
> >folder onto it, and the script would navigate all the folders and find all
> >the
> >files and create the text file.
>
> Sorry for being behind.
>
> There is a Smile's goodie which does exactly that ("Catalog"). Check:
> <http://homepage.mac.com/satimage/>
>
> Emmanuel
>
> --__--__--
>
> Message: 3
> Date: Wed, 31 Oct 2001 03:00:32 -0500
> From: "Marc K. Myers" <email@hidden>
> Reply-To: email@hidden
> Organization: [very little]
> To: email@hidden
> Subject: Re: Folder Actions Memory Q.
>
> > Date: 30 Oct 2001 21:19:58 -0500
> > From: "J. Kiely Jr." <email@hidden>
> > Subject: Folder Actions Memory Q.
> > To: AS Users List <email@hidden>
> > Reply-To: "J. Kiely Jr." <email@hidden>
> >
> > List,
> > Lately my Folder Actions have been giving me headaches.
> > Why would a folder action script give up an "out of memory"
> > error?
> > Basically I have 3 folder actions scripts "on adding items
> > to" type waiting for JPEGs to be added to a folder. Once added the
> > action scripts calls another script (run-only) application to
> > process the image.
> > The "processing" script is mildly involved, about 20 lines
> > of code, but it basically converts RGB JPEGs to CMYK and moves
> > them over Ethernet to an OPI server directory.
> > There is one script each for greyscale, color, and web
> > photos. Each is triggered by their own Folder Action script.
> > The G4 machine has of 600MB of RAM. OS 9.1, Photoshop 6.01
> > & Photoscripter.
>
> Folder action scripts run under the memory allocation of the Folder
> Actions extension. Depending on how they were activated, scripts called
> my folder action scripts might be run under that allocation as well.
> You might try opening up the extension in ResEdit and increasing the
> memory allocation in the SIZE resource.
>
> Marc K. Myers <email@hidden>
> http://AppleScriptsToGo.com
> 4020 W.220th St.
> Fairview Park, OH 44126
> (440) 331-1074
>
> [10/31/01 2:59:00 AM]
>
> --__--__--
>
> Message: 4
> Subject: Re: Getting a folder based on creation date
> Date: Wed, 31 Oct 2001 12:26:18 +0000
> From: Nigel Garvey <email@hidden>
> To: "AppleScript Users" <email@hidden>
>
> Donald Liu wrote on Tue, 30 Oct 2001 17:37:37 -0800:
>
> >Hi all,
> >
> >I'm trying to write a script to get the first folder that was created
> >today on OS 10.1. When I run the following script I get a Finder
> >error saying that it can't make some data into the expected type.
> >What is wrong with the 3rd line? It works fine in OS 9 (after
> >changing the path).
> >
> >Any help and/or work around is appreciated.
> >
> >Thanks (in advance),
> >-donald
> >
> >
> >
> >tell application "Finder"
> > set today to (date "12:00:00 AM") of (current date)
>
> Wow! I've never seen anything like that. A date of another date! It works
> in both OS 9.0.4 and OS 8.6. The parts specified for the date on the left
> of the 'of' override the equivalent parts of the date on the right. The
> date on the left has to be a partial specification in the same line,
> otherwise it becomes a complete date and overrides *everything* in the
> date on the right. If the line contains two date specifications rather
> than involving a function or a variable, it actually compiles as a
> combined date:
>
> date "17" of date "6:30"
> --> Compiles (today) as: date "Wednesday, 17 October 2001 06:30:00"
>
> Is this a bug or a feature?
>
> By the way, it's still about five times as fast to set midnight of the
> current date in the conventional way:
>
> set today to (current date)
> set today's time to 0
>
> Or, if you want it in one line, slightly less instantaneously:
>
> tell (current date) to set {time, today} to {0, it}
>
> NG
>
> --__--__--
>
> Message: 5
> Date: Wed, 31 Oct 2001 13:37:26 +0100
> Subject: Re:Scripting Canto Cumulus 5.010
> From: Mark Bj=?ISO-8859-1?B?5g==?=rgager <email@hidden>
> To: "<email@hidden>"
> <email@hidden>
>
> Thanks a lot for your reply's to my question regarding Cumulus 5.010.
>
> Nate suggested that that I should log of the Cumulus client after doing my
> stuff. I modified my script so that it will interact 10 times with Cumulus,
> then close every open collection. The next time it will open up the
> connection again.
>
> This seems to be a more stable solution, Cumulus does not drop off anymore.
>
> Regarding OkeyDokey Pro, I do have Cumulus Client added to the response
> list, it still doesn't respond to the Cumulus dialogs.
>
> It seems like my script is OK now, but I still have some issues with it,
> where Canto didn't think it through (IMHO). Did any of you guys figure this
> one out...
>
> If you Catalog assets [aFile] and this file IS logged in, it returns
> _nothing_, try this...
>
> Set aFile to "Macintosh HD:yourimagehere.jpg"
> repeat 2 times
> tell application "Cumulus 5 client"
> set catref to catalog assets aFile to front collection
> end tell
> if catref  "" Then beep
> end repeat
>
> On my mac this script run fine the first time, the second time catref is not
> initialized and it errors out. ! Otherwise I could use this to see if a
> asset were logged in, but instead it fails and I have to assume that it were
> logged in, sucks big time.
>
> Regards
> Mark
>
> > Fra: Mark Bjfrgager <email@hidden>
> > Dato: Tue, 30 Oct 2001 09:18:20 +0100
> > Til: "<email@hidden>"<email@hidden>
> > Emne: Scripting Canto Cumulus 5.010
> >
> > Hello all.
> >
> > I am scripting Cumulus client 5.010 to add images to a Cumulus database, but
> > I am having some troubles with the client. Most often it is that the client
> > drops the connection to the server and Cumulus then shows a warning dialog,
> > from then on the client does not respond to my appleevents.
> >
> > How can I test to see if there's a dialog in front of Cumulus ? How can I
> > remove it, I installed OkeyDokey Pro to see if it would remove any dialogs,
> > but it seems like O-K-P can't "see" the dialogs.
> >
> > Best regards
> > Mark Bjaergager
> > _______________________________________________
> > applescript-users mailing list
> > email@hidden
> > http://www.lists.apple.com/mailman/listinfo/applescript-users
>
> --__--__--
>
> Message: 6
> From: email@hidden
> Date: Wed, 31 Oct 2001 14:12:13 +0100
> Subject: ANNOUNCE: osaxen.com supports XML-RPC
> To: email@hidden
>
> I'm proud to announce the addition of XML-RPC support to osaxen.com, a
> database of scripting additions at macscripter.net. This means that you
> can search for information about scripting additions from within
> AppleScript. OS X 10.1 has native support for XML-RPC and Mark
> Alldritt's XML-RPC library for OS 8/9 works as well (with a few
> limitations). The following six methods are supported:
>
> tell application "http://www.osaxen.com/xmlrpc.php";
> return call xmlrpc {method name:"osaxen.findCommand",
> parameters:"mail"}
> end tell
>
> the findCommand method takes a search string as parameter and returns a
> struct (i.e. record) with basic information about the found command.
>
> tell application "http://www.osaxen.com/xmlrpc.php";
> return call xmlrpc {method name:"osaxen.getCommand",
> parameters:"sysoGMT "}
> end tell
>
> The getCommand method takes the class and event of a command and returns
> a struct (i.e. record) with command information. This includes the name
> and osaxen.com ID of the scripting addition package so that the package
> can easily be downloaded.
>
> tell application "http://www.osaxen.com/xmlrpc.php";
> return call xmlrpc {method name:"osaxen.findAddition",
> parameters:"mail"}
> end tell
>
> the findAddition method takes a search string as parameter and returns a
> struct (i.e. record) with basic information about the found scripting
> addition file.
>
> tell application "http://www.osaxen.com/xmlrpc.php";
> return call xmlrpc {method name:"osaxen.getAddition",
> parameters:"sysoGMT "}
> end tell
>
> The getAddition method takes the class and event of a the first command
> in a scripting addition file and returns a struct (i.e. record) with
> osax information. This includes the name and osaxen.com ID of the
> scripting addition package so that the package can easily be downloaded.
>
> tell application "http://www.osaxen.com/xmlrpc.php";
> return call xmlrpc {method name:"osaxen.findPackage",
> parameters:"mail"}
> end tell
>
> the findPackage method takes a search string as parameter and returns a
> struct (i.e. record) with basic information about the found osaxen.
> Similar to the list view at osaxen.com.
>
> tell application "http://www.osaxen.com/xmlrpc.php";
> return call xmlrpc {method name:"osaxen.getPackage",
> parameters:"xml_tools"}
> end tell
>
> the getPackage method takes a osax ID as parameter and returns a struct
> (i.e. record) with detailed information about the osax. Similar to the
> detail view at osaxen.com.
>
> For more information, call system.listMethods (without parameters),
> system.methodHelp (with the name of the method) and
> system.method.Signature (with the name of the method).
>
> XML-RPC offers a number of very interesting possibilities. A script
> could automatically locate and download a scripting addition that it
> needs to work properly. Or XML-RPC could provide additional
> functionality to AppleScript (sort of like a web scripting addition).
>
> - Martin
>
> --__--__--
>
> Message: 7
> From: email@hidden
> Date: Wed, 31 Oct 2001 14:17:04 +0100
> Subject: ANNOUNCE: osaxen.com supports XML-RPC
> To: email@hidden
>
> I'm proud to announce the addition of XML-RPC support to osaxen.com, a
> database of scripting additions at macscripter.net. This means that you
> can search for information about scripting additions from within
> AppleScript. OS X 10.1 has native support for XML-RPC and Mark
> Alldritt's XML-RPC library for OS 8/9 works as well (with a few
> limitations). The following six methods are supported:
>
> tell application "http://www.osaxen.com/xmlrpc.php";
> return call xmlrpc {method name:"osaxen.findCommand",
> parameters:"mail"}
> end tell
>
> the findCommand method takes a search string as parameter and returns a
> struct (i.e. record) with basic information about the found command.
>
> tell application "http://www.osaxen.com/xmlrpc.php";
> return call xmlrpc {method name:"osaxen.getCommand",
> parameters:"sysoGMT "}
> end tell
>
> The getCommand method takes the class and event of a command and returns
> a struct (i.e. record) with command information. This includes the name
> and osaxen.com ID of the scripting addition package so that the package
> can easily be downloaded.
>
> tell application "http://www.osaxen.com/xmlrpc.php";
> return call xmlrpc {method name:"osaxen.findAddition",
> parameters:"mail"}
> end tell
>
> the findAddition method takes a search string as parameter and returns a
> struct (i.e. record) with basic information about the found scripting
> addition file.
>
> tell application "http://www.osaxen.com/xmlrpc.php";
> return call xmlrpc {method name:"osaxen.getAddition",
> parameters:"sysoGMT "}
> end tell
>
> The getAddition method takes the class and event of a the first command
> in a scripting addition file and returns a struct (i.e. record) with
> osax information. This includes the name and osaxen.com ID of the
> scripting addition package so that the package can easily be downloaded.
>
> tell application "http://www.osaxen.com/xmlrpc.php";
> return call xmlrpc {method name:"osaxen.findPackage",
> parameters:"mail"}
> end tell
>
> the findPackage method takes a search string as parameter and returns a
> struct (i.e. record) with basic information about the found osaxen.
> Similar to the list view at osaxen.com.
>
> tell application "http://www.osaxen.com/xmlrpc.php";
> return call xmlrpc {method name:"osaxen.getPackage",
> parameters:"xml_tools"}
> end tell
>
> the getPackage method takes a osax ID as parameter and returns a struct
> (i.e. record) with detailed information about the osax. Similar to the
> detail view at osaxen.com.
>
> For more information, call system.listMethods (without parameters),
> system.methodHelp (with the name of the method) and
> system.method.Signature (with the name of the method).
>
> XML-RPC offers a number of very interesting possibilities. A script
> could automatically locate and download a scripting addition that it
> needs to work properly. Or XML-RPC could provide additional
> functionality to AppleScript (sort of like a web scripting addition).
>
> - Martin
>
> --__--__--
>
> Message: 8
> Date: Wed, 31 Oct 2001 14:19:49 +0100
> To: email@hidden
> From: Frank Miedreich <email@hidden>
> Subject: Re: Getting a folder based on creation date
>
> Hi,
>
> AFAIK the creation date of a file is not available on certain
> filesystems, e.g UFS, NFS volumes, and some Mac OS X disks. Try to
> access the creation date of individual files on this disk, and wrap
> the code in a try catch block to get the exact error message.
>
> You can also try to use the "info for" scripting addition. If this
> fails, or lists the creation date as "missing value", then the file
> system does not support creation dates.
>
> frank
>
> At 17:37 Uhr -0800 30.10.2001, Donald Liu wrote:
> >Hi all,
> >
> >I'm trying to write a script to get the first folder that was
> >created today on OS 10.1. When I run the following script I get a
> >Finder error saying that it can't make some data into the expected
> >type. What is wrong with the 3rd line? It works fine in OS 9 (after
> >changing the path).
> >
> >Any help and/or work around is appreciated.
> >
> >Thanks (in advance),
> >-donald
> >
> >
> >
> >tell application "Finder"
> > set today to (date "12:00:00 AM") of (current date)
> > set todaysbuild to first folder in folder
> >"Volumes:Scratch:Builds:" of startup disk whose creation date is
> >greater than today
> >end tell
>
> --__--__--
>
> Message: 9
> Date: Thu, 01 Nov 2001 02:00:10 +1100
> Subject: ANNOUNCE: Image Info 0.9 Beta
> From: David Lloyd <email@hidden>
> To: <email@hidden>
>
> Hello all,
>
> I've made an update to Image Info to include some new features and fixes...
>
> (Image Info is an AppleScript library which returns information about image
> files without loading the whole image into memory. Because it does not need
> to open the whole image, it returns the info very quickly. Image Info runs
> on all Macintosh system from 7.5 to OS X.)
>
> New:
> - Added support for vector EPS's, returning document fonts and colors.
> - Added TIFF encoding info (Mac, IBM).
> - Added EPS encoding info (Binary, Ascii).
> - Added EPS type info (Raster, Vector).
> - Added EPS compression info (JPEG)
> - Added Photoshop extra channels info.
> - Added a "Sort by Resolution" example script.
>
> Fixed and changed:
> - JPEGs now return their info a bit faster.
> - Fixed resolution info from very large TIFFs with very high resolutions.
> - Fixed returned info of Photoshop multichannel color mode.
> - Fixed returned resolutions for EXIF type JPEGs.
> - Now only returns info for the composite part of multiple file DCS files.
> (Skips the plate files.)
> - Fixed a bug in the "Sort landscape & portrait" script.
> - and several others
>
> ------
>
> Original description:
>
> Currently supported image file formats:
>
> - TIFF (Macintosh & IBM PC formats)
> - JPEG
> - PICT
> - BMP (Windows bitmap)
> - 8BPS (Photoshop, only versions 2.5 and above)
> - PNG
> - PNTG (Macpaint)
> - PCX (PC PaintBrush)
> - GIFf (Compuserve gif)
> - ..CT (Scitex CT)
> - Raster EPS (Photoshop)
> - DCS EPS (Photoshop DCS 1.0 and DCS 2.0)
> - Vector EPS
>
> For each type listed above, Image Info returns the following information:
>
> - Height (as pixels, except vector EPS's, which return as points)
> - Width (as pixels, except vector EPS's, which return as points)
> - Resolution (as dots per inch) (except vector EPS's, which return "N/A")
> - Color mode (bitmap, grayscale, RGB, CMYK, Indexed, Multichannel or Lab)
> - (except vector EPS's, which return "N/A")
>
> Some image types return extra information:
>
> TIFF
> - Compression (CCITT, LZW and Packbits),
> - Encoding (Mac, IBM)
>
> BMP
> - Compression (RLE4, RLE8 and Bitfields)
>
> Photoshop
> - Number of extra channels
>
> Raster EPS
> - Encoding (Binary, Ascii, JPEG))
> - Compression (JPEG)
>
> Vector EPS
> - Document fonts
> - Document spot colors
>
> -----
>
> To download a copy (76 kb), go to: http://www.kanzu.com
>
> This beta expires at on November 15.
>
> Best regards,
>
> David Lloyd
>
> ---------------------------------
> email: email@hidden
> web: http://www.kanzu.com
> ---------------------------------
>
> --__--__--
>
> Message: 10
> Date: Wed, 31 Oct 2001 11:48:04 -0500
> Subject: Re: Folder Actions Memory Q.
> From: John McAdams <email@hidden>
> To: <email@hidden>
>
> I have been getting these out of memory errors too. I also get an error:
> "This folder action script has no resources." My script builds a quark doc
> from images and text files which are moved to the folder action folder by
> another script. It runs on a variety of machines but all have at lesast OS
> 9.1 and AS 1.6.
>
> Should we stop using folder actions? Will they be added to OS X?
>
> Thanks,
> jmc
>
> PS:
>
> I used to run a little AppleScript SIG at NYMUG, which has closed (I was
> terrible at it but I miss it). Is anyone interested in starting a AS SIG in
> Manhattan?
>
> > Lately my Folder Actions have been giving me headaches.
> > Why would a folder action script give up an "out of memory"
> > error?
>
> --__--__--
>
> Message: 11
> From: <email@hidden>
> To: email@hidden
> Subject: Does "rounding" work in OS 9.2.1
> Date: Wed, 31 Oct 2001 12:11:48 -0600
>
> I'm putting together a little script to add selection sizes in the Finder. I
> just need a rounded integer for the size. I can't get the rounding script
> addition to work. It is in there that I checked. This compiles fine.
>
> set theSizeTotal to 0
> tell application "Finder"
> activate
> set theSelections to every item of selection
> repeat with theItem in theSelections
> set itemSize to size of theItem
> set itemSize to (itemSize / 1024 / 1024)
> set theSizeTotal to (theSizeTotal + itemSize)
> end repeat
> round theSizeTotal rounding as taught in school
> display dialog theSizeTotal - I would like this to end up an integer
> end tell
>
> Anyone? Rounding, anyone?

Try this:

set theSizeTotal to (round theSizeTotal rounding as taught in school)

(You didn't do anything with the result!)

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[10/31/01 6:36:53 PM]


  • Prev by Date: Re: Inscrutable DiskCopy
  • Next by Date: Re: Does "rounding" work in OS 9.2.1
  • Previous by thread: Timeout on Remote Applications
  • Next by thread: Opening and closing the CD tray
  • Index(es):
    • Date
    • Thread