• 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: File size problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File size problem


  • Subject: Re: File size problem
  • From: Brian Christmas <email@hidden>
  • Date: Thu, 22 Jul 2010 15:04:43 +1000


On 22/07/2010, at 2:36 PM, Ronald Hofmann wrote:

Fact is, when you put the question in there was no finder block included and after I added one it worked like it should do.

The answer is to read twice sequentially, as I found after testing for some time.

Are you serious? You mean you have to execute the same code two times to get the result?

This is at least unusual and it is not true on my machine. Your code is working here as it is supposed to.
Which OS do you have?
Which editor do yo use?

set ptd to path to desktop
set ptf to ptd & "test.rtf" as text
tell application "Finder"
set temp to (file ptf as alias)
set temp2 to properties of temp
#set temp2 to properties of temp
set thesize to size of temp2
end tell
thesize

Regards
---

G'day Ronald

The script I'm actually coding in is part of a 5,400 line email handling script that prints artwork, and saves it compressed to a server (among other things).

If you run the script above in script editor, it runs fine with the one line of 'set temp2 to properties of temp', but not in a script called from another, activating script, where it returns 'missing value'.

I'm using 10.6.4, script editor 2.3 (118)

Regards

Santa

And what, you ask, was the beginning of it all?
And it is this......
Existence that multiplied itself
For sheer delight of being
And plunged with numberless trillions of forms
So that it might
find
itself
innumerably

Sri Aurobindo





 _______________________________________________
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: 
 >File size problem (From: Brian Christmas <email@hidden>)
 >Re: File size problem (From: Brian Christmas <email@hidden>)

  • Prev by Date: AppleScripts and Apache: aaeb.net
  • Next by Date: Re: File size problem
  • Previous by thread: AppleScripts and Apache: aaeb.net
  • Next by thread: Re: File size problem
  • Index(es):
    • Date
    • Thread