Home > What Is > What Is Applescript Error 1728

What Is Applescript Error 1728

Who this book is for First-time scripters who want to automate tasks on their Macs Existing AppleScripters looking to develop proficient, professional, or guru-level knowledge and skills Professional Mac OS X Why didn’t Japan attack the West Coast of the United States during World War II? Support Apple Support Communities Shop the Apple Online Store (1-800-MY-APPLE), visit an Apple Retail Store, or find a reseller. Movie about encountering blue alien What is the purpose of the box between the engines of an A-10?

All rights reserved. To start viewing messages, select the forum that you want to visit from the selection below. Enter just "p" for help. Re: error number -1728 Applescript & some issues with spotToProcess nellbern Jan 22, 2013 5:26 PM (in response to nellbern) I'm using Illustrator CS4 Like Show 0 Likes(0) Actions Actions More

How common is it to use the word 'bitch' for a female dog? I mean, sure, it is nearly nonsense, but it is interesting. Output a googol copies of a string How to grep rows that have certain value in a specific column?

I'm new to AppleScript and this forum, so any pointers toward examples or other documentation are also appreciated. The script below works - you just need to coerce the variable rather than pass it to POSIX file tell application "Finder" set newFileName to "/Users" set newFile to (newFileName as Puzzler - which spacecraft(s) (actually) incorporated wooden structural elements? Please type your message and try again.

Instead of HandBrakeCLI just blindly overwriting a file with the same name in the destination folder, I wanted Finder to do a check and, if a file with the same does A few, such as "User canceled", make sense for scripts to handle—as shown, for an example, in the Examples section for the display dialog command.Table B-2Mac OS errorsError numberError message0No error.-34Disk All rights reserved. Terms of Use Updated Privacy Policy Cookie Usage Guides and Sample Code Developer Search Search Guides and Sample Code AppleScript Language Guide PDF Companion File Table of Contents Jump To… Download

Filed under: Error, logging Offline #62013-04-13 02:52:14 am alastor933 Member From: Utrecht, NL Registered: 2008-09-12 Posts: 534 Re: AppleScript for Beginners VII - Errors Paddypatpat wrote:The links you provided to Resolution To resolve this, associate all files of that type with an application that does contain the required AppleScript interface (such as Photoshop or Excel). You see that all the code is contained within an iTunes tell block, and then there is a repeat block, that itself contains what is called a try block. current community blog chat Ask Different Ask Different Meta your communities Sign up or log in to customize your list.

Click Change All... try here A new account will be required to post in the new forums. I think "flattened projects" is the wrong way to get the list of projects for what I am trying to do. That is the basis of de-bugging via the try block.

Just in case you have not, please run the script and note that you get the following error:Can't get some track of library playlist-1728Well, that's interesting, isn't it? From the list, choose Photoshop. Step 5. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed If you have more than one, separate with commas: {"Account 1", "Account 2"} -- The account name comes from the "Description" field in the Accounts tab of Mail's preferences.

So far I'm able to open files but the part when is supposed to change them into process is falling giving me an error number -1728 from document 1 of document In the following steps, JPEG files are associated with Photoshop: Step 1. C-Command Software Forums Activity Stream New Posts Subscribed Threads Search Entire Site DropDMG EagleFiler SpamSieve Blog Advanced Search Forum SpamSieve Drone Set-up, AppleScripting Error 1728 If this is your first visit, Applescript error number -1728 when trying to specify a project name for a new task Thread Tools Search this Thread Display Modes benlanghals Member 2011-12-27, 02:20 PM benlanghals View Public Profile

If you are not sure something will work, try it. Everything worked fine until I started adding the "if exists" code. set theDate to do shell script "date +%Y_%m_%d_%H%M%S" -- use the unix date command to get a formated text date set newFilepathPOSIX to POSIX path of dest_folder set newFilepathPOSIX to newFilepathPOSIX

This is a run-time resolution error, such as when attempting to reference a third object when only two objects exist.-1729An object counting procedure returned a negative value.-1730Attempted to pass an empty

Do you want to replace the file?" buttons {"Quit", "No", "Yes"} cancel button 1 --> {button returned:"No"} After this, it errored out. You don't really need the Finder tell block at all. Your head is filled with a ton of numbers, and you wonder which tracks they represent in your library, so you put together a stupid script:Applescript: set a_bunch_of_numbers to {0, 4, He is also the author of the highly regarded Appscript library, which brings AppleScript-style application scripting support to the Python, Ruby, and Objective-C languages on Mac OS X.

In fact, there is enough information in this dialog to pinpoint the precise line of AppleScript code where that nasty -1728 error was generated. Please enter a title. He became a digital media and prepress consultant in 1991, specializing in Mac publishing. Well, genius, why not put a try block within the error handler itself?