Applescript Error Number 1728
Contents |
enter a title. You can not post a blank message. Please type your message and try again. Manuel Federanko Level 1 (0 points) Q: Apple Script error
Applescript Fehler 1728
number -1728 Hello guys i have a little problem with my script apple script error number 1728 i hope you can help mescript:tell application "Finder" display dialog "Bitte wählen Sie den Ordner, in welchem sich
Applescript Error Number 1708
ihre minecraft_server.jar befindet." set serverfolder to quoted form of POSIX path of (container of (choose file)) tell application "Terminal" set cd to "cd" & " " & serverfolder applescript error number 10004 set mehrram to "java -Xmx2048M -Xms2048M -jar minecraft_server.jar" do script cd delay 0.25 do script mehrram in window 1 end tellend tellI think its the 3 line also: set serverfolder to quoted form of POSIX path of (container of (choose file))whats wrong with this line?here is error code:error "„Finder" hat einen Fehler erhalten: „POSIX path of folder \"BTW Server applescript on error continue 1.3.2\" of folder \"Server\" of folder \"Minecraft\" of folder \"Documents\" of folder \"manuelfederanko\" of folder \"Users\" of startup disk" kann nicht gelesen werden." number -1728 from POSIX path of folder "BTW Server 1.3.2" of folder "Server" of folder "Minecraft" of folder "Documents" of folder "manuelfederanko" of folder "Users" of startup diskThanks for helping me Apple Script, Mac OS X (10.7.3) Posted on Aug 30, 2012 2:19 AM I have this question too by Niel,Solvedanswer Niel Level 10 (313,129 points) Mac OS X A: Here:set serverfolder to quoted form of POSIX path of ((container of (choose file)) as alias)(69303) Posted on Aug 30, 2012 8:55 AM See the answer in context Close Q: Apple Script error number -1728 All replies Helpful answers by Niel,Solvedanswer Niel Aug 30, 2012 8:55 AM in response to Manuel Federanko Level 10 (313,129 points) Mac OS X Aug 30, 2012 8:55 AM in response to Manuel Federanko Here:set serverfolder to quoted form of POSIX path of ((container of (choose file)) as alias)(69303) Helpful (0) Reply options Link to this post by Fr
10 iPad Air 2 iPad mini 4 (2015) iPad Pro iPhone 6s iPhone 7 iPhone 8 (2017) iPhone SE iPod nano iPod shuffle iPod touch Mac mini Mac Pro MacBook Air MacBook Pro macOS Sierra Retina MacBook Thunderbolt Display tvOS 10 watchOS 3 Buyer's Guide Forums Forums Front Page Roundups Buyer's Guide Forums Roundups OS X Yosemite MacBook Air iOS 8 Apple
Applescript Try
Watch Log in Sign up Recent Posts Spy Support Support Quick Links General FAQ MacRumors Theme FAQ Contact Us Lost Password Menu Search error 1728 titles only Posted by Member: Separate names with a comma. Newer Than: Search this thread only Search this forum only Display results as threads More... Useful Searches Recent Posts Options Please select a forum
Applescript Error Codes
to jump to News and Article Discussion MacRumors.com News Discussion Mac Blog Discussion iOS Blog Discussion iPhone, iPad, and iPod Touch iOS iOS 9 (Beta) https://discussions.apple.com/thread/4252644?start=0&tstart=0 iOS 8 iOS 7 Older iOS Versions iOS 6 iOS 5 and earlier iPhone iPhone iPhone Tips, Help and Troubleshooting iPhone Accessories iPhone Launch Meetups iPad http://forums.macrumors.com/threads/error-number-1728-applescript-some-issues-with-spot.1530220/ iPad iPad Tips, Help and Troubleshooting iPad Accessories iOS Apps iPod touch iOS Programming iPod Jailbreaks and iOS Hacks Alternatives to iOS and iOS Devices Apple Watch Apple Watch Apple Watch Accessories Apple Watch Apps Macs OS X OS X OS X El Capitan (10.11, Beta) OS X Yosemite (10.10) OS X Mavericks (10.9) Older OS X Versions OS X Mountain Lion (10.8) Mac OS X Lion (10.7) Desktops iMac Mac Pro Mac mini Notebooks MacBook MacBook Pro MacBook Air Mac Basics and Help Mac Programming Buying Tips and Advice PowerPC Macs Mac Accessories Windows, Linux & Others on the Mac Mac Apps and Mac App Store Mac OS X Server, Xserve, and Networking Apple TV Apple TV and Home Theater Ap
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn http://stackoverflow.com/questions/15297731/posix-file-error-extraneous-double-quotes more about Stack Overflow the company Business Learn more about hiring developers or posting http://macscripter.net/viewtopic.php?id=24768 ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up POSIX File Error - Extraneous double quotes? up vote 1 script error down vote favorite This applescript works set myFile to (POSIX path "/Users/fred/Documents/data.dat") This applescript doesn't work set myFileName to "/Users/fred/Documents/data.dat" set myFile to (POSIX path myFileName) It fails with the error get POSIX file "/Users/fred/Documents/data.dat" --> error number -1728 Result: error "iTunes got an error: Can’t get POSIX file \"/Users/fred/Documents/data.dat\"." number -1728 from file "Macintosh HD:Users:drew:Desktop:Music:DIY:DIY-01.mp3" It looks as if when using the variable, POSIX path is including script error number the double quotes as explicit characters in the file name. What am I doing wrong? The script below reproduces the problem. tell application "Finder" set newFileName to "/Users" set newFile to POSIX file newFileName end tell Thanks osx applescript share|improve this question edited Mar 8 '13 at 17:00 asked Mar 8 '13 at 15:40 drew 1,2061920 ... so why not just remove them? –Carl Norum Mar 8 '13 at 15:41 ...because the set myFileName to "/Users/fred/Documents/data.dat" needs them –drew Mar 8 '13 at 15:58 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote accepted OK - I've found out what I should be doing. 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 POSIX file) end tell Result... file "Macintosh HD:Users" Thanks for your assistance. Andrew share|improve this answer answered Mar 8 '13 at 17:27 drew 1,2061920 add a comment| up vote 1 down vote "/Users/fred/Documents/data.dat" Is already a posix path tell application "Finder" to open POSIX file "/Users/fred/Documents/data.dat" or tell application "System Events" to open "/Users/fred/Documents/data.dat" Here is an example
From: Tacoma, WA Registered: 2005-05-16 Posts: 1025 Website AppleScript for Beginners VII - Errors Well, I suppose it finally had to happen. If you have been reading along with these tutorials, you know that we have already had just about as much fun as we are going to have, and it the time has come to start dealing with the dark side of AppleScript. I remember when I first ventured into to the realm of increasingly complex script writing, and the difficulties I had finding out why the heck this script wasn't working the way I wanted it to work. Of course, I can't read your mind and have no clue what sort of crazy things you are going to write in your scripts, so we will focus on the general methods to try to solve problems and find the bugs. As usual, let's start with our final script from last time:Applescript: tell application "iTunes" set five_tracks to {} repeat 5 times try set end of five_tracks to some track of library playlist on error errTxt number errNum display dialog errTxt & return & errNum end try end repeat try play some item of five_tracks on error errTxt number errNum display dialog errTxt & return & errNum end try end tellI hope that you had a chance to play with this a little bit, and I REALLY hope that you found the error and discovered the missing word to fix the script. 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? I mean, sure, it is nearly nonsense, but it is interesting. In fact, there is enough information in this dialog to pinpoint the precise line of AppleScript code where that nasty -1728 error was generated. Let's start by looking at the script itself. 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. The try block is one of the simplest, yet most effective methods of finding, trapping, and getting specific infor