• 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: script won't run on an older iMac.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: script won't run on an older iMac.


  • Subject: Re: script won't run on an older iMac.
  • From: "Stockly, Ed" <email@hidden>
  • Date: Thu, 14 Oct 2010 19:51:19 -0500
  • Acceptlanguage: en-US
  • Thread-topic: script won't run on an older iMac.

Title: Re: script won't run on an older iMac.
This is what I would do:
property destFldr : ""


   set
destFldr to ((path to documents folder) as text) & "scaled_picture_folder"

if saveCopy = "Yes" then save window 1 in (destFldr & "_Originals:" & theName & "." & theExt) -- save copy of original

What I think is happening is that the property destFldr is set when the script is first run as an alias.  Then during the execution it is set to the text value, and it doesn’t change on subsequent runs.

When copied to the older mac the path to the documents folder is not identical (different HD name or user name or something) so that when the same script is copied to that mac it won’t run.

With the version I provided,  the path is reset every time the script runs, so it finds the document folder on whatever mac it’s being run on.

HTH,

ES

On 10/14/10 5:38 PM, "Robert Poland" <email@hidden> wrote:

Hi,

I have this script that works on My 27" iMac and usually works on my MBP but never works on my sisters older iMac. They all run OS 10.6.4.

Complete script is attached.

Error refers to an item not found.

The folders refereed to are created, if needed, in the script. And they do exist.

Seems like the problem stems from these lines;

property destFldr : (path to documents folder as text) & "scaled_picture_folder"

if saveCopy = "Yes" then save window 1 in (destFldr & "_Originals:" & theName & "." & theExt) -- save copy of original



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >script won't run on an older iMac. (From: Robert Poland <email@hidden>)

  • Prev by Date: script won't run on an older iMac.
  • Next by Date: problem to make file with System Events
  • Previous by thread: script won't run on an older iMac.
  • Next by thread: problem to make file with System Events
  • Index(es):
    • Date
    • Thread